ILogger interface for all logging implementations

Hierarchy

  • ILogger

Implemented by

Methods

  • Log a message flagged at the Debug log level

    Parameters

    • msg: string
    • Rest ...args: unknown[]

    Returns void

  • Log an error flagged at the Debug log level

    Parameters

    • err: Error
    • Rest ...args: unknown[]

    Returns void

  • Log an error and a message flagged at the Debug log level

    Parameters

    • err: Error
    • msg: string
    • Rest ...args: unknown[]

    Returns void

  • Log a message flagged at the Error log level

    Parameters

    • msg: string
    • Rest ...args: unknown[]

    Returns void

  • Log an error flagged at the Error log level

    Parameters

    • err: Error
    • Rest ...args: unknown[]

    Returns void

  • Log an error and a message flagged at the Error log level

    Parameters

    • err: Error
    • msg: string
    • Rest ...args: unknown[]

    Returns void

  • Log a message flagged at the Informational log level

    Parameters

    • msg: string
    • Rest ...args: unknown[]

    Returns void

  • Log an error flagged at the Informational log level

    Parameters

    • err: Error
    • Rest ...args: unknown[]

    Returns void

  • Log an error and a message flagged at the Informational log level

    Parameters

    • err: Error
    • msg: string
    • Rest ...args: unknown[]

    Returns void

  • 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");
    });
  • Log a message flagged at the Trace log level

    Parameters

    • msg: string
    • Rest ...args: unknown[]

    Returns void

  • Log an error flagged at the Trace log level

    Parameters

    • err: Error
    • Rest ...args: unknown[]

    Returns void

  • Log an error and a message flagged at the Trace log level

    Parameters

    • err: Error
    • msg: string
    • Rest ...args: unknown[]

    Returns void

  • Log a message flagged at the Warning log level

    Parameters

    • msg: string
    • Rest ...args: unknown[]

    Returns void

  • Log an error flagged at the Warning log level

    Parameters

    • err: Error
    • Rest ...args: unknown[]

    Returns void

  • Log an error and a message flagged at the Warning log level

    Parameters

    • err: Error
    • msg: string
    • Rest ...args: unknown[]

    Returns void

Generated using TypeDoc