grafana/pkg/infra/log
Marcus Efraimsson 862a6a2fa6
Logging: Introduce API for contextual logging (#55198)
Introduces a FromContext method on the log.Logger interface that 
allows contextual key/value pairs to be attached, e.g. per request, 
so that any logger using this API will automatically get the per request 
context attached. The proposal makes the traceID available for 
contextual logger , if available, and would allow logs originating from 
a certain HTTP request to be correlated with traceID.
In addition, when tracing not enabled, skip adding
traceID=00000000000000000000000000000000
to logs.
2022-09-20 18:32:06 +02:00
..
logtest Logging: Introduce API for contextual logging (#55198) 2022-09-20 18:32:06 +02:00
term Chore: Upgrade Go to 1.19.1 (#54902) 2022-09-12 12:03:49 +02:00
text Log: Fix text logging for unsupported types (#51306) 2022-06-23 13:24:26 +02:00
composite_logger_test.go Chore: Logging improvements (#44925) 2022-02-07 16:00:08 +01:00
composite_logger.go Chore: Fix log filters (#44681) 2022-02-03 23:20:02 +08:00
databaseCounter_test.go Instrumentation: log the total number of db queries per request (#54647) 2022-09-05 07:39:22 +02:00
databaseCounter.go Chore: Upgrade Go to 1.19.1 (#54902) 2022-09-12 12:03:49 +02:00
file_test.go Logger migration from log15 to gokit/log (#41636) 2022-01-06 22:28:05 +08:00
file.go Logger: Use specified format for file logger (#46970) 2022-03-26 11:40:08 +01:00
handlers.go Chore: Disable default golangci-lint filter (#29751) 2020-12-15 09:32:06 +01:00
interface.go Logging: Introduce API for contextual logging (#55198) 2022-09-20 18:32:06 +02:00
log_test.go Logging: Introduce API for contextual logging (#55198) 2022-09-20 18:32:06 +02:00
log.go Logging: Introduce API for contextual logging (#55198) 2022-09-20 18:32:06 +02:00
syslog_windows.go Logger migration from log15 to gokit/log (#41636) 2022-01-06 22:28:05 +08:00
syslog.go Chore: Remove the old log format (#51526) 2022-07-08 09:56:30 -05:00