Config
public struct Config
Struct used to enapsulate configuration values, i.e. LogrService.
-
Targets assigned during initialization.
Declaration
Swift
public let targets: [Target]? -
Bool flag assigned during initialization.
Declaration
Swift
public let async: Bool -
Optional dispatch queue assigned during initialization.
Declaration
Swift
public let dispatchQueue: DispatchQueue? -
Initializes new immutable config struct with provided values.
Declaration
Swift
public init(async: Bool = true, dispatchQueue: DispatchQueue? = nil, targets: [Target]? = nil)Parameters
asyncdetermines whether executions passed to the targets will be synchronous or asynchronous. Default: true
dispatchQueuedispatch queue onto which logging messages shall be dispatched to the targets.
targetsarray of targets to which logging messages shall be dispatched.
-
Initializes new immutable config struct with provided values.
Declaration
Swift
public init(async: Bool = true, dispatchQueue: DispatchQueue? = nil, _ targets: Target...)Parameters
asyncdetermines whether executions passed to the targets will be synchronous or asynchronous. Default: true
dispatchQueuedispatch queue onto which logging messages shall be dispatched to the targets
targetsvariadic array of targets to which logging messages shall be dispatched
View on GitHub
Config Structure Reference