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. You should treat thread IDs as opaque strings whose values may be recycled over time.
Declaration
Swift
case callingThread
-
Represents the
Payloadof a `LogEntry.Declaration
Swift
case payload
-
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