Documentation
¶
Index ¶
- type AppLogger
- func (al *AppLogger) Debug(i interface{})
- func (al *AppLogger) Debugf(format string, args ...interface{})
- func (al *AppLogger) Error(err error)
- func (al *AppLogger) Errorf(format string, args ...interface{})
- func (al *AppLogger) Fatal(err error)
- func (al *AppLogger) Fatalf(format string, args ...interface{})
- func (al *AppLogger) Log(i interface{})
- func (al *AppLogger) LogMultiple(errs []error)
- func (al *AppLogger) Logf(format string, args ...interface{})
- func (al *AppLogger) SetLevel(level LogLevel)
- func (al *AppLogger) Warn(i interface{})
- func (al *AppLogger) Warnf(format string, args ...interface{})
- type Interface
- type LogLevel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppLogger ¶
type AppLogger struct {
Logger *zap.Logger
Sugar *zap.SugaredLogger
Level LogLevel
}
func (*AppLogger) LogMultiple ¶
type Interface ¶
type Interface interface {
LogMultiple(errs []error)
Log(i interface{})
Logf(format string, args ...interface{})
Warn(i interface{})
Warnf(format string, args ...interface{})
Error(err error)
Errorf(format string, args ...interface{})
Debug(i interface{})
Debugf(format string, args ...interface{})
Fatal(err error)
Fatalf(format string, args ...interface{})
SetLevel(level LogLevel)
// contains filtered or unexported methods
}
func NewNopLogger ¶
func NewNopLogger() Interface
Click to show internal directories.
Click to hide internal directories.