Skip to content

Type MethodLogging

bootstrap(console:level:metadata:metadataProvider:)

Bootstraps a ConsoleLogger to the LoggingSystem as the default log handler.
static func bootstrap(console: any Console, level: Logger.Level = .info, metadata: Logger.Metadata = [:], metadataProvider: Logger.MetadataProvider? = nil)

Parameters

console

The console the logger will log the messages to.

level

The minimum level of message that the logger will output. This defaults to .info.

metadata

Extra metadata to log with all messages. This defaults to an empty dictionary.

metadataProvider

The metadata provider to bootstrap the logging system with.

Discussion

LoggingSystem.boostrap(console: console)