LogComponent
public enum LogComponent
Possible log format components
-
Timestamp of log Specifying your timestamp format can be done by providing a DateFormatter through
Formatter.timestampFormatterDeclaration
Swift
case timestamp -
Log level
Declaration
Swift
case level -
The actual message
Declaration
Swift
case message -
Log metadata
Declaration
Swift
case metadata -
The log’s originating file
Declaration
Swift
case file -
The log’s originating function
Declaration
Swift
case function -
The log’s originating line number
Declaration
Swift
case line -
Literal text
Declaration
Swift
case text(String) -
A group of
LogComponents, not using the specifiedseparatorDeclaration
Swift
case group([LogComponent]) -
All basic log format component types
Declaration
Swift
public static var allNonmetaComponents: [LogComponent] { get }
View on GitHub
LogComponent Enumeration Reference