Type alias Logger<N>

Logger<N>: {
    id: string;
    level?: number;
    count(...args) => void;
    on(level, logFunction) => void;
    write(entry) => void;
} & {
    [k in N]: LogMethod
}

Type Parameters

Type declaration

  • Readonly id: string
  • Optional level?: number

    Logger local log level.

  • count:function
    • Logs with an increment counter. This is useful during debugging to check for steps executed.

      Parameters

      • Rest ...args: any[]
        Rest

      Returns void

  • on:function
  • write:function

Generated using TypeDoc