BasaltLogger provides a flexible logging system that allows multiple strategies for log output.

Constructors

Methods

  • Logs a debug message.

    Parameters

    • object: unknown

      The object to log.

    • OptionalstrategiesNames: string[]

      The names of the strategies to use. (default: all strategies)

    Returns void

  • Logs an error message.

    Parameters

    • object: unknown

      The object to log.

    • OptionalstrategiesNames: string[]

      The names of the strategies to use. (default: all strategies)

    Returns void

    (BasaltError) - If no strategy is added. (GLOBAL_KEY_ERROR.NO_STRATEGY_ADDED)

  • Logs an info message.

    Parameters

    • object: unknown

      The object to log.

    • OptionalstrategiesNames: string[]

      The names of the strategies to use. (default: all strategies)

    Returns void

    (BasaltError) - If no strategy is added. (GLOBAL_KEY_ERROR.NO_STRATEGY_ADDED)

  • Logs a log message.

    Parameters

    • object: unknown

      The object to log.

    • OptionalstrategiesNames: string[]

      The names of the strategies to use. (default: all strategies)

    Returns void

  • Logs a warn message.

    Parameters

    • object: unknown

      The object to log.

    • OptionalstrategiesNames: string[]

      The names of the strategies to use. (default: all strategies)

    Returns void

    (BasaltError) - If no strategy is added. (GLOBAL_KEY_ERROR.NO_STRATEGY_ADDED)