LoggingService
protocol LoggingService
Wraps a single logging statement implmentation
-
Wrap point for log API integration
Declaration
Swift
func custom(level: LoggingLevel, message: @autoclosure () -> Any, file: String, function: String, line: Int, context: Any?)
Parameters
level
LoggingLevel
message
Describable autoclosure
file
File marker
function
Function marker
line
Line marker
context
If service requires such
-
todo(_:_:_:line:)
Extension methodTodo logging convenience
Declaration
Swift
func todo(_ message: String, _ file: String = #file, _ function: String = #function, line: Int = #line)
Parameters
message
String
file
File marker
function
Function marker
line
Line marker
-
verbose(_:_:_:line:context:)
Extension methodVerbose logging wrapper
Declaration
Swift
func verbose(_ message: @autoclosure () -> Any, _ file: String = #file, _ function: String = #function, line: Int = #line, context: Any? = nil)
Parameters
message
String
file
File marker
function
Function marker
line
Line marker
context
If service requires such
-
debug(_:_:_:line:context:)
Extension methodDebug logging wrapper
Declaration
Swift
func debug(_ message: @autoclosure () -> Any, _ file: String = #file, _ function: String = #function, line: Int = #line, context: Any? = nil)
Parameters
message
String
file
File marker
function
Function marker
line
Line marker
context
If service requires such
-
info(_:_:_:line:context:)
Extension methodInfo logging wrapper
Declaration
Swift
func info(_ message: @autoclosure () -> Any, _ file: String = #file, _ function: String = #function, line: Int = #line, context: Any? = nil)
Parameters
message
String
file
File marker
function
Function marker
line
Line marker
context
If service requires such
-
warning(_:_:_:line:context:)
Extension methodWarning logging wrapper
Declaration
Swift
func warning(_ message: @autoclosure () -> Any, _ file: String = #file, _ function: String = #function, line: Int = #line, context: Any? = nil)
Parameters
message
String
file
File marker
function
Function marker
line
Line marker
context
If service requires such
-
error(_:_:_:line:context:)
Extension methodError logging wrapper
Declaration
Swift
func error(_ message: @autoclosure () -> Any, _ file: String = #file, _ function: String = #function, line: Int = #line, context: Any? = nil)
Parameters
message
String
file
File marker
function
Function marker
line
Line marker
context
If service requires such