Documentation ¶
Index ¶
- type Logger
- type Noop
- func (n Noop) Debug(s string)
- func (n Noop) Debugf(s string, a ...interface{})
- func (n Noop) Error(err error, s string)
- func (n Noop) Errorf(err error, s string, a ...interface{})
- func (n Noop) Fatal(err error, s string)
- func (n Noop) Fatalf(err error, s string, a ...interface{})
- func (n Noop) Info(s string)
- func (n Noop) Infof(s string, a ...interface{})
- func (n Noop) Warn(s string)
- func (n Noop) Warnf(s string, a ...interface{})
- type Zero
- func (z Zero) Debug(s string)
- func (z Zero) Debugf(s string, a ...interface{})
- func (z Zero) Error(err error, s string)
- func (z Zero) Errorf(err error, s string, a ...interface{})
- func (z Zero) Fatal(err error, s string)
- func (z Zero) Fatalf(err error, s string, a ...interface{})
- func (z Zero) Info(s string)
- func (z Zero) Infof(s string, a ...interface{})
- func (z Zero) Warn(s string)
- func (z Zero) Warnf(s string, a ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Info(s string) Infof(s string, a ...interface{}) Debug(s string) Debugf(s string, a ...interface{}) Warn(s string) Warnf(s string, a ...interface{}) Error(err error, s string) Errorf(err error, s string, a ...interface{}) Fatal(err error, s string) Fatalf(err error, s string, a ...interface{}) }
Logger provides a basic logging definition that can be implemented by various log implementations and then passed as a dependency to code that requires logging.
type Noop ¶
type Noop struct { }
Noop does nothing.
type Zero ¶
type Zero struct { }
Zero implements the Logger interface using zerolog.
Click to show internal directories.
Click to hide internal directories.