LoggerFactory
final public class LoggerFactory
Class for configuring logger
This allow user to intergrate logger into application by setup via bootstrap(_:)
See also DefaultLoggerDestination to use default logger
-
It’s one-time configuration function to select logger implementation
This method should be called before using Varioqub. Each varioqub module call bootstrap only once, so the best place is before calling
initialize(clientId:config:idProvider:reporter:).Default implementation uses
DefaultLoggerDestinationto print log messagesDeclaration
Swift
public static func bootstrap(_ f: @escaping LoggerBootstrap)Parameters
ffunction that return
LoggerDestinationforLoggerModuleidentifier. You can setup custom logger for each module
Install in Dash
LoggerFactory Class Reference