Options
All
  • Public
  • Public/Protected
  • All
Menu

Provides logging services for a script.

Access the logger through the global logger object.

NOTE: In a local test environment, the logger writes to the normal JavaScript console. In the real Brigade runtime environment, a levelled logger is used which responds appropriately to the configured level.

Hierarchy

  • Logger

Index

Constructors

Methods

  • debug(message: string, ...meta: any[]): Logger
  • Logs a message at Debug level.

    Parameters

    • message: string

      The message to log

    • Rest ...meta: any[]

      Values to replace any substitution strings in message

    Returns Logger

  • error(message: string, ...meta: any[]): Logger
  • Logs a message at Error level.

    Parameters

    • message: string

      The message to log

    • Rest ...meta: any[]

      Values to replace any substitution strings in message

    Returns Logger

  • info(message: string, ...meta: any[]): Logger
  • Logs a message at Information level.

    Parameters

    • message: string

      The message to log

    • Rest ...meta: any[]

      Values to replace any substitution strings in message

    Returns Logger

  • warn(message: string, ...meta: any[]): Logger
  • Logs a message at Warning level.

    Parameters

    • message: string

      The message to log

    • Rest ...meta: any[]

      Values to replace any substitution strings in message

    Returns Logger

Generated using TypeDoc