-
Creates a
PrintLoggerinstance.Whether assertions are raised or not depends on the usual compiler flags. If compiler flags prevent assertions being raised, the assertion message will still be printed to the console based on the usual
logLevelscheck.Declaration
Swift
public init(logLevels: [LogLevel], includeSourceDetails: Bool, includeFileLogs: Bool = false)Parameters
logLevelsWhich log levels should be displayed.
-
Logs a message
See also
Logger.log(level:message:)Declaration
Swift
public func log( level: LogLevel, file: StaticString, line: UInt, function: String, message: () -> String )
View on GitHub
PrintLogger Class Reference