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
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.
Discussion
LoggingSystem.boostrap(console: console)