PrintLoggerImplementation
public class PrintLoggerImplementation : LoggerOutput
A trivial logger that uses Swift print to stdout. This is not very useful except
for debugging without a dependency on another logging framework, as used in Flint demo projects.
-
Undocumented
Declaration
Swift
public let formattingStrategy: LogEventFormattingStrategy -
Initialise the print logger with a prefix added to every line output, and an option to show only the time instead of the full date and time.
Declaration
Swift
convenience public init(prefix: String? = nil, timeOnly: Bool = false) -
Initialise the logger with a prefix to add to each line, and a custom date format
Declaration
Swift
public init(prefix: String? = nil, dateFormat: String) -
Undocumented
Declaration
Swift
public init(formatter: LogEventFormattingStrategy) -
Declaration
Swift
public func log(event: LogEvent) -
Declaration
Swift
public func copyForArchiving(to path: URL)
View on GitHub
PrintLoggerImplementation Class Reference