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