Type MethodLogging
bootstrap(fragment:console:level:metadata:metadataProvider:)
Bootstraps a
ConsoleFragmentLogger to the LoggingSystem as the default log handler.static func bootstrap(fragment: some LoggerFragment, console: any Console, level: Logger.Level = .info, metadata: Logger.Metadata = [:], metadataProvider: Logger.MetadataProvider? = nil)
Parameters
fragmentThe logger fragment which will be used to build the logged messages.
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(fragment: timestampDefaultLoggerFragment())