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 ?? {}

Defined in

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

Defined in

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

{}

Defined in

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


join?

optional join: string

The string that joins different messages.

Since

1.0.0

Default

' '

Defined in

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


level?

optional level: LogLevel

The minimum log level.

Since

1.0.0

Default

LogLevel.Info

Defined in

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

Defined in

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

Defined in

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