- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ParseInput (0.12 sec)
-
src/log/slog/doc.go
Pass each subsystem a different Logger with its own group name so that potential duplicates are qualified: logger := slog.Default().With("id", systemID) parserLogger := logger.WithGroup("parser") parseInput(input, parserLogger) When parseInput logs with parserLogger, its keys will be qualified with "parser", so even if it uses the common key "id", the log line will have distinct keys. # Contexts
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 15 14:35:48 UTC 2024 - 12.3K bytes - Viewed (0)