Skip to main content

Interface: LoggerOptions

The logger options.

Since

1.0.0

Properties

defaultFormat?

optional defaultFormat: LoggerLevelOptions

The default options used to fill all the possible values for LoggerOptions.format.

Since

1.0.0

Default

options.format.none ?? {}

Source

projects/plugins/packages/logger/src/lib/Logger.ts:127


depth?

optional depth: number

The inspect depth when logging objects.

Since

1.0.0

Default

0

Source

projects/plugins/packages/logger/src/lib/Logger.ts:156


format?

optional format: LoggerFormatOptions

The options for each log level. LogLevel.None serves to set the default for all keys, where only LoggerTimestampOptions.timestamp and LoggerLevelOptions.prefix would be overridden.

Since

1.0.0

Default

{}

Source

projects/plugins/packages/logger/src/lib/Logger.ts:135


join?

optional join: string

The string that joins different messages.

Since

1.0.0

Default

' '

Source

projects/plugins/packages/logger/src/lib/Logger.ts:149


level?

optional level: LogLevel

The minimum log level.

Since

1.0.0

Default

LogLevel.Info

Source

projects/plugins/packages/logger/src/lib/Logger.ts:142


stderr?

optional stderr: WritableStream

A writable stream for the error logs.

Since

1.0.0

Default

process.stderr

Source

projects/plugins/packages/logger/src/lib/Logger.ts:120


stdout?

optional stdout: WritableStream

A writable stream for the output logs.

Since

1.0.0

Default

process.stdout

Source

projects/plugins/packages/logger/src/lib/Logger.ts:113