mirror of
https://github.com/zrepl/zrepl.git
synced 2024-12-18 13:10:56 +01:00
729c83ee72
* stack-based execution model, documented in documentation * circbuf for capturing hook output * built-in hooks for postgres and mysql * refactor docs, too much info on the jobs page, too difficult to discover snapshotting & hooks Co-authored-by: Ross Williams <ross@ross-williams.net> Co-authored-by: Christian Schwarz <me@cschwarz.com> fixes #74
22 lines
989 B
Go
22 lines
989 B
Go
package logger
|
|
|
|
type nullLogger struct{}
|
|
|
|
var _ Logger = nullLogger{}
|
|
|
|
func NewNullLogger() Logger {
|
|
return nullLogger{}
|
|
}
|
|
|
|
func (n nullLogger) WithOutlet(outlet Outlet, level Level) Logger { return n }
|
|
func (n nullLogger) ReplaceField(field string, val interface{}) Logger { return n }
|
|
func (n nullLogger) WithField(field string, val interface{}) Logger { return n }
|
|
func (n nullLogger) WithFields(fields Fields) Logger { return n }
|
|
func (n nullLogger) WithError(err error) Logger { return n }
|
|
func (nullLogger) Log(level Level, msg string) {}
|
|
func (nullLogger) Debug(msg string) {}
|
|
func (nullLogger) Info(msg string) {}
|
|
func (nullLogger) Warn(msg string) {}
|
|
func (nullLogger) Error(msg string) {}
|
|
func (nullLogger) Printf(format string, args ...interface{}) {}
|