LoggerService

Implements ILogger

Logger service with automatic context injection.

Features:

  • Delegates to user-provided logger via setLogger()
  • Automatically appends method context (strategyName, exchangeName, frameName)
  • Automatically appends execution context (symbol, when, backtest)
  • Defaults to NOOP_LOGGER if no logger configured

Used throughout the framework for consistent logging with context.

constructor();
methodContextService: any
executionContextService: any
_commonLogger: any
log: (topic: string, ...args: any[]) => Promise<void>

Logs general-purpose message with automatic context injection.

debug: (topic: string, ...args: any[]) => Promise<void>

Logs debug-level message with automatic context injection.

info: (topic: string, ...args: any[]) => Promise<void>

Logs info-level message with automatic context injection.

warn: (topic: string, ...args: any[]) => Promise<void>

Logs warning-level message with automatic context injection.

setLogger: (logger: ILogger) => void

Sets custom logger implementation.