Type Alias LoggerConfig

LoggerConfig: {
    appName?: string;
    debug?: boolean;
    levelFormat?: string;
    plugins?: BasePlugin[];
    showLevel?: boolean;
    showTimestamp?: boolean;
}

The configuration options for the logger.

Type declaration

  • OptionalappName?: string

    The name of the application to log messages for.

  • Optionaldebug?: boolean

    Whether to enable debug mode.

    false
    
  • OptionallevelFormat?: string

    The format to display the log level in the log message.

    showLevel to be true

    "[level]"
    
  • Optionalplugins?: BasePlugin[]

    An array of plugins that extend the logger.

  • OptionalshowLevel?: boolean

    Whether to show the log level in the log message.

    false
    
  • OptionalshowTimestamp?: boolean

    Whether to show the current timestamp in the log message.

    false