mirror of
https://github.com/apple/swift-log
synced 2026-11-24 03:47:49 +00:00
nest types & allow nested metadata
This commit is contained in:
1 parent
e658d61717
commit
c7ac24db1f
12 files changed
+284
-128
No files matched your search
@@ -17,7 +17,7 @@ enum GlobalLoggerBasedSystem {
|
||||
// run the example
|
||||
for i in 1 ... 2 {
|
||||
print("---------------------------- processing request #\(i) ----------------------------")
|
||||
logger[metadataKey: "requestId"] = UUID().uuidString
|
||||
logger[metadataKey: "requestId"] = "\(UUID().uuidString)"
|
||||
Foo().doSomething(requestNumnber: i)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user