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
file
the file making the call
line
the line in the file making this call
function
the function making this call
level
the log level being printed
error
the error if one is being reported
msg
the log message
args
arguments 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
file
the file making the call
line
the line in the file making this call
function
the function making this call
error
the error if one is being reported
msg
the log message
args
arguments 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
file
the file making the call
line
the line in the file making this call
function
the function making this call
error
the error if one is being reported
msg
the log message
args
arguments 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
file
the file making the call
line
the line in the file making this call
function
the function making this call
error
the error if one is being reported
msg
the log message
args
arguments 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
file
the file making the call
line
the line in the file making this call
function
the function making this call
error
the error if one is being reported
msg
the log message
args
arguments 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
file
the file making the call
line
the line in the file making this call
function
the function making this call
error
the error if one is being reported
msg
the log message
args
arguments 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
file
the file making the call
line
the line in the file making this call
function
the function making this call
error
the error if one is being reported
msg
the log message
args
arguments 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
file
the file making the call
line
the line in the file making this call
function
the function making this call
error
the error if one is being reported
msg
the log message
args
arguments 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
file
the file making the call
line
the line in the file making this call
function
the function making this call
error
the error if one is being reported
msg
the log message
args
arguments 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
file
the file making the call
line
the line in the file making this call
function
the function making this call
error
the error if one is being reported
msg
the log message
args
arguments 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
file
the file making the call
line
the line in the file making this call
function
the function making this call
error
the error if one is being reported
msg
the log message
args
arguments for the log message