-
Creates a
PrintLogger
instance.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
logLevels
check.Declaration
Swift
public init(logLevels: [LogLevel], includeSourceDetails: Bool, includeFileLogs: Bool = false)
Parameters
logLevels
Which 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 )