use the term "metadata"

This commit is contained in:
Johannes Weiss committed 2018-12-12 17:43:59 +00:00
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