Documentation ¶
Index ¶
- func NewZapLogger(o *Options) (*zap.SugaredLogger, error)
- type LogFormat
- type LogInfo
- type LogInfoFormat
- type Logger
- func (l *Logger) Debug(args ...interface{})
- func (l *Logger) Debugf(template string, args ...interface{})
- func (l *Logger) Error(args ...interface{})
- func (l *Logger) Errorf(template string, args ...interface{})
- func (l *Logger) Fatal(args ...interface{})
- func (l *Logger) Fatalf(template string, args ...interface{})
- func (l *Logger) Info(args ...interface{})
- func (l *Logger) Infof(template string, args ...interface{})
- func (l *Logger) Panic(args ...interface{})
- func (l *Logger) Panicf(template string, args ...interface{})
- func (l *Logger) Warn(args ...interface{})
- func (l *Logger) Warnf(template string, args ...interface{})
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewZapLogger ¶
func NewZapLogger(o *Options) (*zap.SugaredLogger, error)
Types ¶
type LogInfo ¶
type LogInfo interface { Debug(args ...interface{}) Info(args ...interface{}) Warn(args ...interface{}) Error(args ...interface{}) Panic(args ...interface{}) Fatal(args ...interface{}) }
type LogInfoFormat ¶
func NewLogger ¶
func NewLogger(o *Options) (LogInfoFormat, error)
Click to show internal directories.
Click to hide internal directories.