Versions in this module Expand all Collapse all v0 v0.5.0 Nov 21, 2024 Changes in this version + type LogLevel int + const DEBUG + const ERROR + const INFO + const WARN + type Logger struct + func NewLogger(config LoggerConfig) (*Logger, error) + func (l *Logger) Close() error + func (l *Logger) Debug(v ...interface{}) + func (l *Logger) Error(v ...interface{}) + func (l *Logger) Info(v ...interface{}) + func (l *Logger) SetLevel(level LogLevel) + func (l *Logger) Warn(v ...interface{}) + type LoggerConfig struct + Compress bool + FilePath string + Level LogLevel + MaxAge int + MaxBackups int + MaxSize int64