ART Framework API Docs
    Preparing search index...

    Class Logger

    A simple static logger class for outputting messages to the console at different levels.

    Configuration is global via the static configure method.

    Logger

    Index

    Constructors

    Methods

    • Configures the static logger settings.

      Parameters

      • config: Partial<LoggerConfig>

        A partial LoggerConfig object. Provided settings will override defaults.

      Returns void

    • Logs a message at the DEBUG level.

      Parameters

      • message: string

        The main log message string.

      • ...args: any[]

        Additional arguments to include in the console output (e.g., objects, arrays).

      Returns void

      Only outputs if the configured log level is DEBUG.

    • Logs a message at the ERROR level.

      Parameters

      • message: string

        The main log message string.

      • ...args: any[]

        Additional arguments to include in the console output (often an error object).

      Returns void

      Outputs if the configured log level is ERROR, WARN, INFO, or DEBUG.

    • Logs a message at the INFO level.

      Parameters

      • message: string

        The main log message string.

      • ...args: any[]

        Additional arguments to include in the console output.

      Returns void

      Outputs if the configured log level is INFO or DEBUG.

    • Logs a message at the WARN level.

      Parameters

      • message: string

        The main log message string.

      • ...args: any[]

        Additional arguments to include in the console output.

      Returns void

      Outputs if the configured log level is WARN, INFO, or DEBUG.