mirror of
https://github.com/apple/swift-log
synced 2026-11-24 03:47:49 +00:00
make logger metadata non-optional (#15)
motivation: simpler / cleaner API changes: change logger Metadata API to be non-nullable, since the original motivation is no longer valid
This commit is contained in:
1 parent
19d987b6d5
commit
5ca706eb48
7 files changed
+47
-50
No files matched your search
@@ -35,7 +35,7 @@ public final class SimpleLogging {
|
||||
set { self.logger.logLevel = newValue }
|
||||
}
|
||||
|
||||
public var metadata: Logging.Metadata? {
|
||||
public var metadata: Logging.Metadata {
|
||||
get { return self.logger.metadata }
|
||||
set { self.logger.metadata = newValue }
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user