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 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 Chore: Missed deprecations due to overly broad lint exclusion (#59732) 2022-12-14 12:32:45 +01: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: Fix running tests multiple times (#60559) 2022-12-27 16:42:03 +01:00
log.go Logging: Introduce API for contextual logging (#55198) 2022-09-20 18:32:06 +02:00
requestTiming.go Plugins: Add username to datasource plugin logging (#59893) 2022-12-07 13:15:42 +01: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