Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Logger

deprecated

This logger is unused and will be removed in the next major version.

Hierarchy

  • Logger

Index

Constructors

  • Creates a new Logger instance

    Parameters

    • className: string

      The Class name associated with the logging instance

    • Optional options: LoggerOptions

      Optional logging settings

    Returns Logger

Properties

className: string

Methods

  • debug(message: string, object?: unknown): void
  • Log a message at the debug level

    Parameters

    • message: string

      The message to log

    • Optional object: unknown

      Additional meta data to log

    Returns void

  • error(message: string, object?: unknown): void
  • Log a message at the error level

    Parameters

    • message: string

      The message to log

    • Optional object: unknown

      Additional meta data to log

    Returns void

  • info(message: string, object?: unknown): void
  • Log a message at the info level

    Parameters

    • message: string

      The message to log

    • Optional object: unknown

      Additional meta data to log

    Returns void

  • isDebug(): boolean
  • isError(): boolean
  • isInfo(): boolean
  • isWarn(): boolean
  • warn(message: string, object?: unknown): void
  • Log a message at the warn level

    Parameters

    • message: string

      The message to log

    • Optional object: unknown

      Additional meta data to log

    Returns void

  • filter(type: string, values: string[]): void
  • Filter log messages for a particular class

    Parameters

    • type: string

      The type of filter (currently only class)

    • values: string[]

      The filters to apply

    Returns void

  • reset(): void
  • Resets the logger to default settings, error and no filtered classes

    Returns void

  • Set the current log level

    Parameters

    • newLevel: LoggerLevel

      Set current log level (debug, warn, info, error)

    Returns void

Generated using TypeDoc