grafana/pkg/infra/log
Emil Tullstedt 88323a30b7
Logging: Fix running tests multiple times (#60559)
- Create new ctxLogProviders for each scenario to support
go test -count=n for n>1. Currently, it just kept adding providers for
every new run, which would make it add way more key-value pairs to
the provider than necessary.

- Adding a helper method to the scenario to make it easier to set up tests
for logging and easier to read the tests. I also flattened the test file, to
reduce the complexity of each test function.
2022-12-27 16:42:03 +01:00
..
logtest
term
text
composite_logger.go
composite_logger_test.go
databaseCounter.go
databaseCounter_test.go
file.go
file_test.go
handlers.go
interface.go
log.go
log_test.go
requestTiming.go
syslog.go
syslog_windows.go