TimestampLogFormatter
public struct TimestampLogFormatter: LogFormatter
A LogFormatter
that returns a string representation of a LogEntry
‘s
timestamp
property.
This is typically combined with other LogFormatter
s within a
ConcatenatingLogFormatter
.
-
The
TimestampStyle
that determines how the receiver will format its output.Declaration
Swift
public let style: TimestampStyle
-
Initializes a new
TimestampLogFormatter
that will use the specifiedTimestampStyle
.Declaration
Swift
public init(style: TimestampStyle = .default)
Parameters
style
A
TimestampStyle
value that will govern the output of theformat(_:)
function.