Class which facilitates logging of messages to a specific place.

Hierarchy

  • Logger

Constructors

  • Parameters

    • loggerOptions: LoggerOptions
    • Optional packageName: string
    • Optional packageVersion: string

    Returns Logger

Methods

  • Create new Logger with existing configurations.

    Parameters

    • packageName: string
    • packageVersion: string
    • Optional correlationId: string

    Returns Logger

  • Logs error messages.

    Parameters

    • message: string
    • Optional correlationId: string

    Returns void

  • Logs error messages with PII.

    Parameters

    • message: string
    • Optional correlationId: string

    Returns void

  • Execute callback with message.

    Parameters

    • level: LogLevel
    • message: string
    • containsPii: boolean

    Returns void

  • Logs info messages.

    Parameters

    • message: string
    • Optional correlationId: string

    Returns void

  • Logs info messages with PII.

    Parameters

    • message: string
    • Optional correlationId: string

    Returns void

  • Returns whether PII Logging is enabled or not.

    Returns boolean

  • Logs trace messages.

    Parameters

    • message: string
    • Optional correlationId: string

    Returns void

  • Logs trace messages with PII.

    Parameters

    • message: string
    • Optional correlationId: string

    Returns void

  • Logs verbose messages.

    Parameters

    • message: string
    • Optional correlationId: string

    Returns void

  • Logs verbose messages with PII.

    Parameters

    • message: string
    • Optional correlationId: string

    Returns void

  • Logs warning messages.

    Parameters

    • message: string
    • Optional correlationId: string

    Returns void

  • Logs warning messages with PII.

    Parameters

    • message: string
    • Optional correlationId: string

    Returns void

Generated using TypeDoc