Versions in this module Expand all Collapse all v1 v1.1.1 Jan 27, 2023 Changes in this version + const ErrNotSupportedLoggerInstance + type Fields map[string]interface + type LogLevel string + const Debug + const Error + const Fatal + const Info + const Warn + type Logger interface + Debug func(args ...interface{}) + Debugf func(msg string, args ...interface{}) + Error func(args ...interface{}) + Errorf func(msg string, args ...interface{}) + Fatal func(args ...interface{}) + Fatalf func(msg string, args ...interface{}) + For func(ctx context.Context) Logger + Info func(args ...interface{}) + Infof func(msg string, args ...interface{}) + Warn func(args ...interface{}) + Warnf func(msg string, args ...interface{}) + With func(fields Fields) Logger + func New(instance LoggerInstance, options Options) (Logger, error) + type LoggerErr string + func (e LoggerErr) Error() string + type LoggerInstance int + const ZapLogger + type Options struct + ConsoleJSONFormat bool + ConsoleLevel LogLevel + EnableConsole bool + EnableFile bool + FileCompress bool + FileJSONFormat bool + FileLevel LogLevel + FileMaxAge int + FileMaxBackups int + FileMaxSize int + Filename string