Interface LoggerOptions

Options for configuring the Logger.

interface LoggerOptions {
    disableClearing: boolean;
    format: string;
    formatOptions: FormatOptions;
    hideErrorStack: boolean;
    hideWarningStack: boolean;
    noGlobalConsole: boolean;
    prefix: string;
    retainLogs: boolean;
}

Properties

disableClearing: boolean

Whether to disable clearing log entries

Default

false
format: string

The format to use for log messages

See

formatMessage

Default

'($time) [$prefix$level] $message'
formatOptions: FormatOptions

Options to use for formatting

See

FormatOptions

hideErrorStack: boolean

Whether logged errors will include a stack

Default

false
hideWarningStack: boolean

Whether logged warnings will include a stack

Default

false
noGlobalConsole: boolean

Whether to attach the global console to the Logger during initialization.

Default

false
prefix: string

The prefix to use (will not affect "passthrough" messages)

retainLogs: boolean

Whether to retain logs in memory.

Default

false