mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 23:54:05 -08:00
9 lines
206 B
Go
9 lines
206 B
Go
|
package log
|
||
|
|
||
|
type nopLogger struct{}
|
||
|
|
||
|
// NewNopLogger returns a logger that doesn't do anything.
|
||
|
func NewNopLogger() Logger { return nopLogger{} }
|
||
|
|
||
|
func (nopLogger) Log(...interface{}) error { return nil }
|