logger

Orchestrate container-based CFN Loop execution with Redis-backed state management.

14|2|Updated Sep 23, 2025
One-click install
npx skills add https://github.com/masharratt/claude-flow-novice --skill logger
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: logger
Source: https://github.com/masharratt/claude-flow-novice/tree/main/.claude/cfn-loop-orchestration-v2/lib/orchestrator/src/utils/logger.ts
Command: npx skills add https://github.com/masharratt/claude-flow-novice --skill logger

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Simple logging utility to standardize debug/info/warn/error output across TS modules.

Core Features & Use Cases

  • Consistent logs: All modules emit structured logs with context.
  • Easy integration: Lightweight, dependency-free logger.

Quick Start

const logger = new Logger("orchestrator"); logger.info("Starting");

Frequently Asked Questions about logger

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up consistent logging across TypeScript modules?

Structured logging standardizes debug, info, warn, and error output across TS modules with consistent context. Create a Logger instance with a module name—e.g., `const logger = new Logger("orchestrator")` —then call `logger.info()`, `logger.warn()`, or `logger.error()` to emit formatted messages. This eliminates ad-hoc console calls and makes diagnostics traceable.

Can I use a lightweight logger without adding dependencies?

Yes. This logging utility is dependency-free, designed to integrate into TS projects without pulling in external packages. It provides structured console output with minimal overhead, making it ideal for applications where you need debugging and diagnostics without bloating your dependency tree.

What's the difference between using console.log and a structured logger?

Structured logging adds context (module name, severity level) and consistent formatting to every message, making logs searchable and parseable across your codebase. Console.log outputs raw text without context. A structured logger makes diagnostics and debugging significantly faster in multi-module applications.

How do I troubleshoot issues when my logs aren't appearing?

Verify the Logger is instantiated with the correct module name and that you're calling the appropriate method—`info()`, `warn()`, `error()`, or `debug()`. Check that your console output isn't being suppressed by your runtime environment or build tooling. Structured logs emit to stdout by default.

Can I integrate this logger into an existing TypeScript project?

Yes. Since it's dependency-free and lightweight, drop the logger module into your TS project and instantiate it in any file that needs structured output. Replace existing console calls with logger method calls, using the module or component name as the Logger identifier for clear diagnostic context.