Versions in this module Expand all Collapse all v0 v0.1.2 May 18, 2020 v0.1.1 May 16, 2020 Changes in this version + var Default = Logger(nil) + func Debug(args ...interface{}) + func Debugf(format string, args ...interface{}) + func Error(args ...interface{}) + func Errorf(format string, args ...interface{}) + func Fatal(args ...interface{}) + func Fatalf(format string, args ...interface{}) + func Flush() error + func Info(args ...interface{}) + func Infof(format string, args ...interface{}) + func Panic(args ...interface{}) + func Panicf(format string, args ...interface{}) + func Register(name string, provider LoggerProvider) + func Warn(args ...interface{}) + func Warnf(format string, args ...interface{}) + type Fields map[string]interface + type LogLevel string + const DebugLevel + const ErrorLevel + const FatalLevel + const InfoLevel + const WarnLevel + type Logger interface + Debug func(args ...interface{}) + Debugf func(format string, args ...interface{}) + Error func(args ...interface{}) + Errorf func(format string, args ...interface{}) + Fatal func(args ...interface{}) + Fatalf func(format string, args ...interface{}) + Flush func() error + Info func(args ...interface{}) + Infof func(format string, args ...interface{}) + Panic func(args ...interface{}) + Panicf func(format string, args ...interface{}) + Warn func(args ...interface{}) + Warnf func(format string, args ...interface{}) + WithFields func(fields Fields) Logger + func NewLogger(options ...LoggerOption) (Logger, error) + func WithFields(keyValues Fields) Logger + type LoggerOption func(*LoggerOptions) error + func WithJSONFormat(jsonFormat bool) LoggerOption + func WithLevel(level LogLevel) LoggerOption + func WithOutput(output io.Writer) LoggerOption + func WithPresets(fields Fields) LoggerOption + func WithProvider(provider string) LoggerOption + func WithReplaceDefaultLogger(replace bool) LoggerOption + func WithRollingFiles(filename string, maxSizeMBs, maxBackups, maxAgeDays int) LoggerOption + type LoggerOptions struct + type LoggerProvider interface + NewLogger func(output io.Writer, level LogLevel, jsonFormat bool, fields Fields) (Logger, error)