consul/agent/log-drop
Dhia Ayachi 233eacf0a4
inject logger and create logdrop sink (#15822)
* inject logger and create logdrop sink

* init sink with an empty struct instead of nil

* wrap a logger instead of a sink and add a discard logger to avoid double logging

* fix compile errors

* fix linter errors

* Fix bug where log arguments aren't properly formatted

* Move log sink construction outside of handler

* Add prometheus definition and docs for log drop counter

Co-authored-by: Daniel Upton <daniel@floppy.co>
2023-01-06 11:33:53 -07:00
..
log-drop.go inject logger and create logdrop sink (#15822) 2023-01-06 11:33:53 -07:00
log-drop_test.go inject logger and create logdrop sink (#15822) 2023-01-06 11:33:53 -07:00
mock_Logger.go inject logger and create logdrop sink (#15822) 2023-01-06 11:33:53 -07:00