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
DefaultLoggerDestination
to print log messagesDeclaration
Swift
public static func bootstrap(_ f: @escaping LoggerBootstrap)
Parameters
f
function that return
LoggerDestination
forLoggerModule
identifier. You can setup custom logger for each module