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
levelLoggingLevel
messageDescribable autoclosure
fileFile marker
functionFunction marker
lineLine marker
contextIf 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
messageString
fileFile marker
functionFunction marker
lineLine 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
messageString
fileFile marker
functionFunction marker
lineLine marker
contextIf 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
messageString
fileFile marker
functionFunction marker
lineLine marker
contextIf 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
messageString
fileFile marker
functionFunction marker
lineLine marker
contextIf 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
messageString
fileFile marker
functionFunction marker
lineLine marker
contextIf 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
messageString
fileFile marker
functionFunction marker
lineLine marker
contextIf service requires such
View on GitHub
LoggingService Protocol Reference