Interface ILogger

Describes a generic logging implementation.

Hierarchy

  • ILogger

Properties

format: LogFormat

See [[ServerLoggerConfig]]

level: LogLevel

See [[ServerLoggerConfig]]

Methods

  • Log a debug level message.

    Parameters

    • message: string

      String which can contain sprintf style format placeholders.

    • Rest ...formatArgs: any[]

      (Optional) Arguments which are passed to sprintf to format the message.

    Returns any

  • Log a error level message.

    Parameters

    • message: string

      String which can contain sprintf style format placeholders.

    • Rest ...formatArgs: any[]

      (Optional) Arguments which are passed to sprintf to format the message.

    Returns any

  • Log a error level message with an associated error and stack trace.

    Parameters

    • message: string

      String which can contain sprintf style format placeholders.

    • ex: Error

      Error object associated with this error message.

    • Rest ...formatArgs: any[]

      (Optional) Arguments which are passed to sprintf to format the message.

    Returns any

  • Log a fatal level message.

    Parameters

    • message: string

      String which can contain sprintf style format placeholders.

    • Rest ...formatArgs: any[]

      (Optional) Arguments which are passed to sprintf to format the message.

    Returns any

  • Log a info level message.

    Parameters

    • message: string

      String which can contain sprintf style format placeholders.

    • Rest ...formatArgs: any[]

      (Optional) Arguments which are passed to sprintf to format the message.

    Returns any

  • Log a message with a custom level.

    Parameters

    • level: LogLevel

      Level of the log message.

    • message: string

      String which can contain sprintf style format placeholders.

    • Rest ...formatArgs: any[]

      (Optional) Arguments which are passed to sprintf to format the message.

    Returns any

  • Log a trace level message.

    Parameters

    • message: string

      String which can contain sprintf style format placeholders.

    • Rest ...formatArgs: any[]

      (Optional) Arguments which are passed to sprintf to format the message.

    Returns any

  • Log a warn trace level message.

    Parameters

    • message: string

      String which can contain sprintf style format placeholders.

    • Rest ...formatArgs: any[]

      (Optional) Arguments which are passed to sprintf to format the message.

    Returns any

Generated using TypeDoc