You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Motivation:
Addresses #291
Modifications:
Add new API to Logger, that allows the caller to pass an Error object to any log function. Extend LogHandler to allow an implementation to access the error, in order to format the log appropriately. Provide default implementaions to preserve backwards compatibility.
Result:
By providing default implementations, the change should be compatible between old and new code, both from the API and implementation side. I.e. a client can use the new API and it will still work with 'old' implementations, and vice versa.
"Attempted to set metadataProvider on \(Self.self) that did not implement support for them. Please contact the log handler maintainer to implement metadata provider support.",
213
+
error:nil,
199
214
metadata:nil,
200
215
source:"Logging",
201
216
file: #file,
@@ -210,6 +225,20 @@ extension LogHandler {
210
225
211
226
extensionLogHandler{
212
227
@available(*, deprecated, message:"You should implement this method instead of using the default implementation")
0 commit comments