DebugLogger
public struct DebugLogger
extension DebugLogger: Log
Default/debug logger.
-
Set to log the file name in output
Declaration
Swift
public static var logFileName: Bool -
Set the log the class name, function and line number in output
Declaration
Swift
public static var logSource: Bool -
Set the log the thread name or Id in output
Declaration
Swift
public static var logThreadName: Bool
-
New DebugLogger.
Declaration
Swift
public init(namespace: String, for clazz: Any, withLevel level: LogLevel)Parameters
namespacethe namespace for this log
forthe class using this log
withLevelthe log level for this log
-
/////////////////////////////////////////////////////////////////////////////
Declaration
Swift
public func logit(file: StaticString, line: Int, function: StaticString, level: LogLevel, error: Error?, msg: String, args: [CVarArg])
Install in Dash
DebugLogger Structure Reference