Documentation ¶
Index ¶
- func NewLoggerWithCore(coreLogger *zap.Logger) *builtinLogger
- func NewTest(t testing.TB) *builtinLogger
- type Logger
- type Mocked
- func (l *Mocked) Debug(msg string, keysAndValues ...interface{})
- func (l *Mocked) Error(msg string, keysAndValues ...interface{})
- func (l *Mocked) Info(msg string, keysAndValues ...interface{})
- func (l *Mocked) Named(name string) *builtinLogger
- func (l *Mocked) Warn(msg string, keysAndValues ...interface{})
- func (l *Mocked) With(args ...interface{}) *builtinLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLoggerWithCore ¶
NewLoggerWithCore creates an abstracted logger
Types ¶
type Logger ¶
type Logger interface { Named(name string) Logger With(args ...interface{}) Logger Debug(msg string, keysAndValues ...interface{}) Info(msg string, keysAndValues ...interface{}) Error(msg string, keysAndValues ...interface{}) Warn(msg string, keysAndValues ...interface{}) }
Logger logs application events
Click to show internal directories.
Click to hide internal directories.