XcodeLogFormatter
public final class XcodeLogFormatter: LogFormatter
A LogFormatter ideal for use within Xcode. This format is not well-suited
for parsing.
-
Initializes a new
XcodeLogFormatterinstance.Declaration
Swift
public init(showCallSite: Bool = true)Parameters
showCallSiteIf
true, the source file and line indicating the call site of the log request will be added to formatted log messages. -
Called to create a string representation of the passed-in
LogEntry.Declaration
Swift
open func format(_ entry: LogEntry) -> String?Parameters
entryThe
LogEntryto attempt to convert into a string.Return Value
A
Stringrepresentation ofentry, ornilif the receiver could not format theLogEntry.
View on GitHub
XcodeLogFormatter Class Reference