README ¶ asynclogger An async logger used to store access log for web servers Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Conf type Logger func NewLogger(conf *Conf) *Logger func (l *Logger) Error(msg string, fields ...zap.Field) func (l *Logger) Info(msg string, fields ...zap.Field) func (l *Logger) Rotate() error func (l *Logger) Sync() error func (l *Logger) Warn(msg string, fields ...zap.Field) func (l *Logger) Write(p []byte) (n int, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Conf ¶ type Conf struct { Path string MaxSize int BufLimit int QueueSize int Level string ZapConf zapcore.EncoderConfig } type Logger ¶ type Logger struct { Zap *zap.Logger Lumberjack *lumberjack.Logger // contains filtered or unexported fields } func NewLogger ¶ func NewLogger(conf *Conf) *Logger func (*Logger) Error ¶ func (l *Logger) Error(msg string, fields ...zap.Field) func (*Logger) Info ¶ func (l *Logger) Info(msg string, fields ...zap.Field) func (*Logger) Rotate ¶ func (l *Logger) Rotate() error func (*Logger) Sync ¶ func (l *Logger) Sync() error func (*Logger) Warn ¶ func (l *Logger) Warn(msg string, fields ...zap.Field) func (*Logger) Write ¶ func (l *Logger) Write(p []byte) (n int, err error) Source Files ¶ View all Source files async_logger.go Click to show internal directories. Click to hide internal directories.