ILogger interface for all logging implementations

Hierarchy

Implements

Constructors

Properties

#config: ILoggerConfig
#consoleLoggerConfig: IConsoleLoggerConfig
closeLevel: string = ']'
openLevel: string = '['

Methods

  • Rescope the logger with the provided name. Used for tagging the logger.

    Parameters

    • name: string

      The tag the logger should be given

    Returns ILogger & IDisposable

    Example

    Use the scope tool inside a 'using' to scope logging to a specific method.
    return using(() => logger.scope("theNameOfMyScope"), logger =>
    {
    logger.debug("Log something here");
    });

Generated using TypeDoc