Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Logger

A Logger is used to log messages for a specific system or application component.

Hierarchy

  • Logger

Index

Properties

appender

appender: Appender

The destination for messages this logger receives.

level

level: Level

The level at which this logger will output messages.

name

name: string

The human readable name of this logger instance.

Methods

debug

  • debug(...input: any[]): boolean
  • Creates a LoggingEvent of debug priority, returning true if the message will be output based on this logger's level.

    Parameters

    • Rest ...input: any[]

      Data describing the logging event.

    Returns boolean

error

  • error(...input: any[]): boolean
  • Creates a LoggingEvent of error priority, returning true if the message will be output based on this logger's level.

    Parameters

    • Rest ...input: any[]

      Data describing the logging event.

    Returns boolean

fatal

  • fatal(...input: any[]): boolean
  • Creates a LoggingEvent of fatal priority, returning true if the message will be output based on this logger's level.

    Parameters

    • Rest ...input: any[]

      Data describing the logging event.

    Returns boolean

info

  • info(...input: any[]): boolean
  • Creates a LoggingEvent of info priority, returning true if the message will be output based on this logger's level.

    Parameters

    • Rest ...input: any[]

      Data describing the logging event.

    Returns boolean

isEnabled

  • isEnabled(level: Level): boolean
  • Returns if this logger will output messages at the specified level.

    Parameters

    • level: Level

      The level to check.

    Returns boolean

log

  • log(...input: any[]): boolean
  • Supplied for compatibility with other logging systems. Specific level varies by implementation.

    Parameters

    • Rest ...input: any[]

      Data describing the logging event.

    Returns boolean

trace

  • trace(...input: any[]): boolean
  • Creates a LoggingEvent of trace priority, returning true if the message will be output based on this logger's level.

    Parameters

    • Rest ...input: any[]

      Data describing the logging event.

    Returns boolean

warn

  • warn(...input: any[]): boolean
  • Creates a LoggingEvent of warn priority, returning true if the message will be output based on this logger's level.

    Parameters

    • Rest ...input: any[]

      Data describing the logging event.

    Returns boolean

Generated using TypeDoc