Versions in this module Expand all Collapse all v0 v0.1.0 Apr 14, 2025 Changes in this version + func NewFileLogger(opts *FileLoggerOptions) (*lumberjack.Logger, error) + func ParseLogLevel(level string) zap.AtomicLevel + type FileLoggerOptions struct + LogDirectory string + LogFilePrefix string + MaxAge int + MaxSize int + type Logger interface + Debug func(msg string, fields ...zapcore.Field) + Error func(msg string, fields ...zapcore.Field) + Fatal func(msg string, fields ...zapcore.Field) + Info func(msg string, fields ...zapcore.Field) + Warn func(msg string, fields ...zapcore.Field) + func NewLogger(options *LoggerOptions) (Logger, error) + func NewZapLogger(opts *LoggerOptions) (Logger, error) + type LoggerOptions struct + LogDirectory string + LogFilePrefix string + LogFormat string + LogLevel string + LogOutput string + MaxFileSize int + func NewLoggerOptions() *LoggerOptions + func (o *LoggerOptions) SetLogDirectory(directory string) *LoggerOptions + func (o *LoggerOptions) SetLogFilePrefix(prefix string) *LoggerOptions + func (o *LoggerOptions) SetLogFormat(format string) *LoggerOptions + func (o *LoggerOptions) SetLogLevel(level string) *LoggerOptions + func (o *LoggerOptions) SetLogOutput(output string) *LoggerOptions + func (o *LoggerOptions) SetMaxFileSize(size int) *LoggerOptions + func (o *LoggerOptions) Validate() error + type MockLogger struct + func NewMockLogger() *MockLogger + func (m *MockLogger) Debug(msg string, fields ...zapcore.Field) + func (m *MockLogger) Error(msg string, fields ...zapcore.Field) + func (m *MockLogger) Fatal(msg string, fields ...zapcore.Field) + func (m *MockLogger) Info(msg string, fields ...zapcore.Field) + func (m *MockLogger) Warn(msg string, fields ...zapcore.Field)