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
factory
the logger factory
-
Get the current logger.
Declaration
Swift
public static func getLogger(namespace: String, for clazz: Any) -> Log
Parameters
namespace
the Logger namespace
clazz
the class requesting the logger
Return Value
configured logger