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
consoleThe console the logger will log the messages to.
levelThe minimum level of message that the logger will output. This defaults to
.info.metadataExtra metadata to log with all messages. This defaults to an empty dictionary.
metadataProviderThe metadata provider to bootstrap the logging system with.
Discussion
LoggingSystem.boostrap(console: console)