Logger
public protocol Logger
A logger protocol implemented by Logger implementations. This API is used by Kitura throughout its implementation when logging.
-
Output a logged message.
Declaration
Swift
func log(_ type: LoggerMessageType, msg: String, functionName: String, lineNum: Int, fileName: String)Parameters
typeThe type of the message (
LoggerMessageType) being logged.msgThe message to be logged.
functionNameThe name of the function invoking the logger API.
lineNumThe line in the source code of the function invoking the logger API.
fileNameThe file containing the source code of the function invoking the logger API.
-
Indicates if a message with a specified type (
LoggerMessageType) will be in the logger output (i.e. will not be filtered out).Declaration
Swift
func isLogging(_ level: LoggerMessageType) -> BoolParameters
typeThe type of message (
LoggerMessageType).Return Value
A Boolean indicating whether a message of the specified type (
LoggerMessageType) will be in the logger output.
View on GitHub
Logger Protocol Reference