public struct Logger

A Logger is the central type in SwiftLog. Its central function is to emit log messages using one of the methods corresponding to a log level.

Loggers are value types with respect to the logLevel and the metadata (as well as the immutable label and the selected LogHandler). Therefore, Loggers are suitable to be passed around between libraries if you want to preserve metadata across libraries.

The most basic usage of a Logger is

logger.info("Hello World!")