Versions in this module Expand all Collapse all v0 v0.0.11 Oct 19, 2021 v0.0.10 Sep 28, 2021 Changes in this version + func NewDefaultZapLogger(Path string) *zap.Logger + func NewZapLogger(Path string, options ...Option) *zap.Logger + type Config struct + Compress bool + MaxAge int + MaxBackups int + MaxSize int + Path string + type Log struct + func NewDefaultLog(path string) *Log + func NewLog(path string, options ...Option) *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 interface + type LoggerF interface + DebugF func(msg string, keysAndValues ...interface{}) + ErrorF func(msg string, keysAndValues ...interface{}) + InfoF func(msg string, keysAndValues ...interface{}) + WarnF func(msg string, keysAndValues ...interface{}) + type LoggerZap interface + Debug func(msg string, field ...zapcore.Field) + Error func(msg string, field ...zapcore.Field) + Info func(msg string, field ...zapcore.Field) + Warn func(msg string, field ...zapcore.Field) + type Option func(c *Config) + func Compress(compress bool) Option + func MaxAge(maxAge int) Option + func MaxBackups(maxBackups int) Option + func MaxSize(maxSize int) Option