We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f8d2ea commit 13a81f9Copy full SHA for 13a81f9
Glider/Sources/Transports/Console/OSLogTransport.swift
@@ -126,7 +126,14 @@ extension OSLogTransport {
126
127
// MARK: - Initialization
128
129
- public init(_ builder: ((inout Configuration) -> Void)?) {
+ /// Initialize a new configuration for `OSLogTransport`.
130
+ ///
131
+ /// - Parameters:
132
+ /// - formatters: formatters to use. Ignore to use the default `XCodeFormatter`.
133
+ /// - builder: builder configuration function.
134
+ public init(formatters: [EventMessageFormatter] = [XCodeFormatter.init()],
135
+ _ builder: ((inout Configuration) -> Void)?) {
136
+ self.formatters = formatters
137
self.queue = DispatchQueue(label: String(describing: type(of: self)), attributes: [])
138
builder?(&self)
139
}
0 commit comments