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
async
determines whether executions passed to the targets will be synchronous or asynchronous. Default: true
dispatchQueue
dispatch queue onto which logging messages shall be dispatched to the targets.
targets
array 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
async
determines whether executions passed to the targets will be synchronous or asynchronous. Default: true
dispatchQueue
dispatch queue onto which logging messages shall be dispatched to the targets
targets
variadic array of targets to which logging messages shall be dispatched