Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Type MethodLogging

bootstrap(console:level:metadata:)

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

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.

Discussion

LoggingSystem.boostrap(console: console)