Field
public enum Field
The individual Field declarations for the FieldBasedLogFormatter.
-
Represents the timestamp field rendered in a specific
TimestampStyle.Declaration
Swift
case timestamp(TimestampStyle)
-
Represents the
LogSeverityfield rendered in a specificSeverityStyle.Declaration
Swift
case severity(SeverityStyle)
-
Represents the call site field. The call site includes the filename and line number corresponding to the call site’s source.
Declaration
Swift
case callSite
-
Represents the stack frame of the caller. Assuming the call site is within a function, this field will contain the signature of the function.
Declaration
Swift
case stackFrame
-
Represents the ID of the thread on which the call was executed. The
CallingThreadStylespecifies how the thread ID is represented.Declaration
Swift
case callingThread(CallingThreadStyle)
-
Represents the name of the currently executing process.
Declaration
Swift
case processName
-
Represents the ID of the currently executing process.
Declaration
Swift
case processID
-
Represents a text delimiter. The
DelimiterStylespecifies the content of the delimiter string.Declaration
Swift
case delimiter(DelimiterStyle)
-
Represents a string literal.
Declaration
Swift
case literal(String)
-
Represents a field containing the output of the given
LogFormatter.Declaration
Swift
case custom(LogFormatter)
View on GitHub
Field Enum Reference