Documentation ¶
Index ¶
- func NewDefaultZapLogger(Path string) *zap.Logger
- func NewZapLogger(Path string, options ...Option) *zap.Logger
- type Config
- type Log
- func (p *Log) Debug(msg string, field ...zapcore.Field)
- func (p *Log) DebugF(msg string, keysAndValues ...interface{})
- func (p *Log) Error(msg string, field ...zapcore.Field)
- func (p *Log) ErrorF(msg string, keysAndValues ...interface{})
- func (p *Log) Info(msg string, field ...zapcore.Field)
- func (p *Log) InfoF(msg string, keysAndValues ...interface{})
- func (p *Log) Warn(msg string, field ...zapcore.Field)
- func (p *Log) WarnF(msg string, keysAndValues ...interface{})
- type Logger
- type LoggerF
- type LoggerZap
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultZapLogger ¶
Types ¶
type LoggerF ¶
type LoggerF interface { DebugF(msg string, keysAndValues ...interface{}) InfoF(msg string, keysAndValues ...interface{}) WarnF(msg string, keysAndValues ...interface{}) ErrorF(msg string, keysAndValues ...interface{}) }
LoggerF zap logger use sprintf format string
Click to show internal directories.
Click to hide internal directories.