Logger
@objc(ZDKChatLogger)
public final class Logger : NSObject
Singleton access point for logging, inject a LoggerFactory to specify the Logger.
-
Default level for logging
Declaration
Swift
@objc public static var defaultLevel: LogLevel -
Logging is disabled by default
Declaration
Swift
@objc public static var isEnabled: Bool -
Set the logger factory to be used.
Declaration
Swift
public static func setFactory(factory: LoggerFactory)Parameters
factorythe logger factory
-
Get the current logger.
Declaration
Swift
public static func getLogger(namespace: String, for clazz: Any) -> LogParameters
namespacethe Logger namespace
clazzthe class requesting the logger
Return Value
configured logger
Install in Dash
Logger Class Reference