Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Logger

Class to represent logging

Hierarchy

  • Logger

Index

Constructors

  • new Logger(facility: string, options?: default): Logger
  • Creates a new Logger.

    Parameters

    • facility: string

      The facility (location) of the logger

    • Optional options: default

      The options to pass the logger. Note that global.lgjs__globalOptions will be used if unspecified.

    Returns Logger

Properties

doLog: boolean

Do we log to the console?

facility: string

The facility of the logger

file: LogFile

The LogFile that is used for logging

Methods

  • crit(message: any, describer?: string): void
  • Sends a critical log message to the file.

    Parameters

    • message: any

      The message to send

    • Optional describer: string

      The description of where the log is happening.

    Returns void

  • debug(message: any, describer?: string): void
  • Sends a debugging log message to the file.

    Parameters

    • message: any

      The message to send

    • Optional describer: string

      The description of where the log is happening.

    Returns void

  • emerg(message: any, describer?: string): void
  • Sends an emergency (fatal) log message to the file.

    Parameters

    • message: any

      The message to send

    • Optional describer: string

      The description of where the log is happening.

    Returns void

  • err(message: any, describer?: string): void
  • Sends an error log message to the file.

    Parameters

    • message: any

      The message to send

    • Optional describer: string

      The description of where the log is happening.

    Returns void

  • info(message: any, describer?: string): void
  • Sends an informational log message to the file.

    Parameters

    • message: any

      The message to send

    • Optional describer: string

      The description of where the log is happening.

    Returns void

  • log(message: any, describer?: string): void
  • Sends a normal log message to the file.

    Parameters

    • message: any

      The message to send

    • Optional describer: string

      The description of where the log is happening.

    Returns void

  • notice(message: any, describer?: string): void
  • Sends a notice message to the file.

    Parameters

    • message: any

      The message to send

    • Optional describer: string

      The description of where the log is happening.

    Returns void

  • warn(message: any, describer?: string): void
  • Sends a warning log message to the file.

    Parameters

    • message: any

      The message to send

    • Optional describer: string

      The description of where the log is happening.

    Returns void

Generated using TypeDoc