Class Logger

Hierarchy

  • Logger

Constructors

  • Parameters

    • name: string

    Returns Logger

  • Parameters

    Returns Logger

Methods

  • Creates a child logger from the parent. Helpful when you have a dependency and want to maintain a logging relationship to the parent.

    Parameters

    Returns Logger

  • Debug level messages show if debug or lower (trace) level logging is set.

    Parameters

    • message: string

      To send to the console.

    • Optional object: any

      provide context to the message.

    Returns void

  • Error level messages show if info or lower (trace) level logging is set.

    Parameters

    • message: string

      To send to the console.

    • Optional object: any

      provide context to the message.

    Returns void

  • Info level messages show if info or lower (trace) level logging is set.

    Parameters

    • message: string

      To send to the console.

    • Optional object: any

      provide context to the message.

    Returns void

  • Log level messages show if info or lower (trace) level logging is set.

    Parameters

    • message: string

      To send to the console.

    • Optional object: any

      provide context to the message.

    Returns void

  • Locates the configuration in the environment.

    Parameters

    • level: string

    Returns any

  • Creates a timer with the given name.

    Parameters

    • name: string

    Returns Logger.Timer

  • Trace level messages will only show if trace level logging is enabled.

    Parameters

    • message: string

      To send to the console.

    • Optional object: any

      provide context to the message.

    Returns void

  • Warn level messages show if info or lower (trace) level logging is set.

    Parameters

    • message: string

      To send to the console.

    • Optional object: any

      provide context to the message.

    Returns void

Generated using TypeDoc