mirror of
https://github.com/apple/swift-log
synced 2026-11-25 03:57:48 +00:00
use the term "metadata"
This commit is contained in:
1 parent
c7c54cc237
commit
50a8c8fdac
10 files changed
+102
-43
No files matched your search
@@ -4,7 +4,7 @@ import Logging
|
||||
private class Client {
|
||||
func spawnFreshClient(uuid: UUID, logger: Logger) {
|
||||
var logger = logger
|
||||
logger[diagnosticKey: "UUID"] = uuid.description
|
||||
logger[metadataKey: "UUID"] = uuid.description
|
||||
logger.info("we're up and running")
|
||||
let otherSubSystem = OtherSubSystem()
|
||||
otherSubSystem.randomFunction(logger: logger)
|
||||
@@ -20,6 +20,7 @@ private class OtherSubSystem {
|
||||
|
||||
enum ExplicitContextPassingExample {
|
||||
static func main() {
|
||||
Logging.bootstrap(ExampleValueLoggerImplementation.init)
|
||||
let logger = Logging.make("com.example.TestApp.ExplicitContextPassingExample.main")
|
||||
for clientID in 0 ..< 10 {
|
||||
var clientLogger = logger
|
||||
|
||||
Reference in new issue
Block a user