Structures
The following structures are available globally.
-
A
Loggeris the central type inSwiftLog. Its central function is to emit log messages using one of the methods corresponding to a log level.The most basic usage of a
Loggeris
See morelogger.info("Hello World!")Declaration
Swift
public struct Logger -
A pseudo-
LogHandlerthat can be used to send messages to multiple otherLogHandlers.The first
See moreLogHandlerpassed to the initialisation function ofMultiplexLogHandlercontrol thelogLevelas well as themetadatafor thisLogHandler. Any subsequentLogHandlers used to initialise aMultiplexLogHandlerare merely to emit the log message to another place.Declaration
Swift
public struct MultiplexLogHandler : LogHandler -
See moreStreamLogHandleris a simple implementation ofLogHandlerfor directingLoggeroutput to eitherstderrorstdoutvia the factory methods.Declaration
Swift
public struct StreamLogHandler : LogHandler
View on GitHub
Install in Dash
Structures Reference