Documentation ¶
Index ¶
- type Logger
- func (l *Logger) Debugf(template string, args ...interface{})
- func (l *Logger) Debugw(msg string, keysAndValues ...interface{})
- func (l *Logger) Errorf(template string, args ...interface{})
- func (l *Logger) Fatalf(template string, args ...interface{})
- func (l *Logger) Fatalw(msg string, keysAndValues ...interface{})
- func (l *Logger) Infow(msg string, keysAndValues ...interface{})
- func (l *Logger) Printf(template string, args ...interface{})
- func (l *Logger) Sync()
- func (l *Logger) Warnw(msg string, keysAndValues ...interface{})
- type LoggerInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func InitLogger ¶
func InitLogger(verbose bool, writers ...zapcore.WriteSyncer) *Logger
type LoggerInterface ¶
type LoggerInterface interface { Sync() Infow(msg string, keysAndValues ...interface{}) Errorf(template string, args ...interface{}) Printf(template string, args ...interface{}) Debugw(msg string, keysAndValues ...interface{}) Debugf(template string, args ...interface{}) Warnw(msg string, keysAndValues ...interface{}) Fatalw(msg string, keysAndValues ...interface{}) Fatalf(template string, args ...interface{}) }
Click to show internal directories.
Click to hide internal directories.