Log
public protocol Log
Simple log interface to allow implementations as preferred.
-
Log an event.
Declaration
Swift
func logit(file: StaticString, line: Int, function: StaticString, level: LogLevel, error: Error?, msg: String, args: [CVarArg])Parameters
filethe file making the call
linethe line in the file making this call
functionthe function making this call
levelthe log level being printed
errorthe error if one is being reported
msgthe log message
argsarguments for the log message
-
i(file:Extension methodline: function: error: _: _: ) Log an info message.
Declaration
Swift
func i(file: StaticString = #filePath, line: Int = #line, function: StaticString = #function, error: Error? = nil, _ msg: String, _ args: CVarArg...)Parameters
filethe file making the call
linethe line in the file making this call
functionthe function making this call
errorthe error if one is being reported
msgthe log message
argsarguments for the log message
-
v(file:Extension methodline: function: error: _: _: ) Log a verbose message.
Declaration
Swift
func v(file: StaticString = #filePath, line: Int = #line, function: StaticString = #function, error: Error? = nil, _ msg: String, _ args: CVarArg...)Parameters
filethe file making the call
linethe line in the file making this call
functionthe function making this call
errorthe error if one is being reported
msgthe log message
argsarguments for the log message
-
d(file:Extension methodline: function: error: _: _: ) Log a debug message.
Declaration
Swift
func d(file: StaticString = #filePath, line: Int = #line, function: StaticString = #function, error: Error? = nil, _ msg: String, _ args: CVarArg...)Parameters
filethe file making the call
linethe line in the file making this call
functionthe function making this call
errorthe error if one is being reported
msgthe log message
argsarguments for the log message
-
w(file:Extension methodline: function: error: _: _: ) Log a warn message.
Declaration
Swift
func w(file: StaticString = #filePath, line: Int = #line, function: StaticString = #function, error: Error? = nil, _ msg: String, _ args: CVarArg...)Parameters
filethe file making the call
linethe line in the file making this call
functionthe function making this call
errorthe error if one is being reported
msgthe log message
argsarguments for the log message
-
e(file:Extension methodline: function: error: _: _: ) Log an error message.
Declaration
Swift
func e(file: StaticString = #filePath, line: Int = #line, function: StaticString = #function, error: Error? = nil, _ msg: String, _ args: CVarArg...)Parameters
filethe file making the call
linethe line in the file making this call
functionthe function making this call
errorthe error if one is being reported
msgthe log message
argsarguments for the log message
-
debugI(file:Extension methodline: function: error: _: _: ) Log an info message.
Declaration
Swift
func debugI(file: StaticString = #filePath, line: Int = #line, function: StaticString = #function, error: Error? = nil, _ msg: String, _ args: CVarArg...)Parameters
filethe file making the call
linethe line in the file making this call
functionthe function making this call
errorthe error if one is being reported
msgthe log message
argsarguments for the log message
-
debugV(file:Extension methodline: function: error: _: _: ) Log a verbose message.
Declaration
Swift
func debugV(file: StaticString = #filePath, line: Int = #line, function: StaticString = #function, error: Error? = nil, _ msg: String, _ args: CVarArg...)Parameters
filethe file making the call
linethe line in the file making this call
functionthe function making this call
errorthe error if one is being reported
msgthe log message
argsarguments for the log message
-
debugD(file:Extension methodline: function: error: _: _: ) Log a debug message.
Declaration
Swift
func debugD(file: StaticString = #filePath, line: Int = #line, function: StaticString = #function, error: Error? = nil, _ msg: String, _ args: CVarArg...)Parameters
filethe file making the call
linethe line in the file making this call
functionthe function making this call
errorthe error if one is being reported
msgthe log message
argsarguments for the log message
-
debugW(file:Extension methodline: function: error: _: _: ) Log a warn message.
Declaration
Swift
func debugW(file: StaticString = #filePath, line: Int = #line, function: StaticString = #function, error: Error? = nil, _ msg: String, _ args: CVarArg...)Parameters
filethe file making the call
linethe line in the file making this call
functionthe function making this call
errorthe error if one is being reported
msgthe log message
argsarguments for the log message
-
debugE(file:Extension methodline: function: error: _: _: ) Log an error message.
Declaration
Swift
func debugE(file: StaticString = #filePath, line: Int = #line, function: StaticString = #function, error: Error? = nil, _ msg: String, _ args: CVarArg...)Parameters
filethe file making the call
linethe line in the file making this call
functionthe function making this call
errorthe error if one is being reported
msgthe log message
argsarguments for the log message
Install in Dash
Log Protocol Reference