@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    Lightweight, context-scoped logger.

    Each Logger instance is bound to a context string (typically the class or feature name) and a pluggable ILoggingStrategy. The context is automatically prepended to every message so that log output is easy to filter.

    const log = new Logger(new ConsoleLoggingStrategy(), "MyService");
    log.info("initialised"); // → "[2026-03-23T12:00:00.000Z] MyService: initialised"
    log.warn("deprecation", [api]); // → "[2026-03-23T12:00:00.000Z] MyService: deprecation" [api]
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Log a debug-level message.

      Parameters

      • message: string
      • args: unknown[] = []

      Returns void

    • Log an error.

      Parameters

      • message: string
      • args: unknown[] = []

      Returns void

    • Log an informational message.

      Parameters

      • message: string
      • args: unknown[] = []

      Returns void

    • Log a warning.

      Parameters

      • message: string
      • args: unknown[] = []

      Returns void