mirror of
https://github.com/grafana/grafana.git
synced 2024-12-28 18:01:40 -06:00
862a6a2fa6
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. |
||
---|---|---|
.. | ||
logtest | ||
term | ||
text | ||
composite_logger_test.go | ||
composite_logger.go | ||
databaseCounter_test.go | ||
databaseCounter.go | ||
file_test.go | ||
file.go | ||
handlers.go | ||
interface.go | ||
log_test.go | ||
log.go | ||
syslog_windows.go | ||
syslog.go |