Versions in this module Expand all Collapse all v1 v1.0.2 Sep 27, 2023 v1.0.1 May 23, 2023 Changes in this version + const DefaultName + const F_ASYNC + const F_CALLER_FN + const F_FILE_LONG + const F_FILE_SHORT + const F_TIME_DATE + const F_TIME_MILLI + const F_TIME_STD + const F_TIME_TIME + const LEVEL_ALL + const LEVEL_CRIT + const LEVEL_DEBU + const LEVEL_DEV + const LEVEL_ERRO + const LEVEL_FATA + const LEVEL_INFO + const LEVEL_NOTI + const LEVEL_PANI + const LEVEL_PROD + const LEVEL_WARN + func Critical(v ...interface{}) + func Criticalf(format string, v ...interface{}) + func Debug(v ...interface{}) + func Debugf(format string, v ...interface{}) + func Error(v ...interface{}) + func Errorf(format string, v ...interface{}) + func Fatal(v ...interface{}) + func Fatalf(format string, v ...interface{}) + func GetCtxKeys() []interface + func GetFlags() int + func GetLevel() int + func GetLevelPrefix(level int) string + func GetPath() string + func GetStack(skip ...int) string + func GetWriter() io.Writer + func Info(v ...interface{}) + func Infof(format string, v ...interface{}) + func Notice(v ...interface{}) + func Noticef(format string, v ...interface{}) + func Panic(v ...interface{}) + func Panicf(format string, v ...interface{}) + func Print(v ...interface{}) + func PrintStack(skip ...int) + func Printf(format string, v ...interface{}) + func Println(v ...interface{}) + func SetAsync(enabled bool) + func SetConfig(config Config) error + func SetConfigWithMap(m map[string]interface{}) error + func SetCtxKeys(keys ...interface{}) + func SetDebug(debug bool) + func SetDefaultLogger(l *Logger) + func SetFile(pattern string) + func SetFlags(flags int) + func SetHeaderPrint(enabled bool) + func SetLevel(level int) + func SetLevelPrefix(level int, prefix string) + func SetLevelPrefixes(prefixes map[int]string) + func SetLevelStr(levelStr string) error + func SetPath(path string) error + func SetPrefix(prefix string) + func SetStack(enabled bool) + func SetStdoutPrint(enabled bool) + func SetWriter(writer io.Writer) + func Warning(v ...interface{}) + func Warningf(format string, v ...interface{}) + type Config struct + CtxKeys []interface{} + File string + Flags int + HeaderPrint bool + Level int + LevelPrefixes map[int]string + Path string + Prefix string + RotateBackupCompress int + RotateBackupExpire time.Duration + RotateBackupLimit int + RotateCheckInterval time.Duration + RotateExpire time.Duration + RotateSize int64 + StFilter string + StSkip int + StStatus int + StdoutPrint bool + Writer io.Writer + func DefaultConfig() Config + type Logger struct + func Async(enabled ...bool) *Logger + func Cat(category string) *Logger + func Ctx(ctx context.Context, keys ...interface{}) *Logger + func DefaultLogger() *Logger + func Expose() *Logger + func File(pattern string) *Logger + func Header(enabled ...bool) *Logger + func Instance(name ...string) *Logger + func Level(level int) *Logger + func LevelStr(levelStr string) *Logger + func Line(long ...bool) *Logger + func New() *Logger + func NewWithWriter(writer io.Writer) *Logger + func Path(path string) *Logger + func Skip(skip int) *Logger + func Stack(enabled bool, skip ...int) *Logger + func StackWithFilter(filter string) *Logger + func Stdout(enabled ...bool) *Logger + func To(writer io.Writer) *Logger + func (l *Logger) AppendCtxKeys(keys ...interface{}) + func (l *Logger) Async(enabled ...bool) *Logger + func (l *Logger) Cat(category string) *Logger + func (l *Logger) Clone() *Logger + func (l *Logger) Critical(v ...interface{}) + func (l *Logger) Criticalf(format string, v ...interface{}) + func (l *Logger) Ctx(ctx context.Context, keys ...interface{}) *Logger + func (l *Logger) Debug(v ...interface{}) + func (l *Logger) Debugf(format string, v ...interface{}) + func (l *Logger) Error(v ...interface{}) + func (l *Logger) Errorf(format string, v ...interface{}) + func (l *Logger) Fatal(v ...interface{}) + func (l *Logger) Fatalf(format string, v ...interface{}) + func (l *Logger) File(file string) *Logger + func (l *Logger) GetCtxKeys() []interface{} + func (l *Logger) GetFlags() int + func (l *Logger) GetLevel() int + func (l *Logger) GetLevelPrefix(level int) string + func (l *Logger) GetPath() string + func (l *Logger) GetStack(skip ...int) string + func (l *Logger) GetWriter() io.Writer + func (l *Logger) Header(enabled ...bool) *Logger + func (l *Logger) Info(v ...interface{}) + func (l *Logger) Infof(format string, v ...interface{}) + func (l *Logger) Level(level int) *Logger + func (l *Logger) LevelStr(levelStr string) *Logger + func (l *Logger) Line(long ...bool) *Logger + func (l *Logger) Notice(v ...interface{}) + func (l *Logger) Noticef(format string, v ...interface{}) + func (l *Logger) Panic(v ...interface{}) + func (l *Logger) Panicf(format string, v ...interface{}) + func (l *Logger) Path(path string) *Logger + func (l *Logger) Print(v ...interface{}) + func (l *Logger) PrintStack(skip ...int) + func (l *Logger) Printf(format string, v ...interface{}) + func (l *Logger) Println(v ...interface{}) + func (l *Logger) SetAsync(enabled bool) + func (l *Logger) SetConfig(config Config) error + func (l *Logger) SetConfigWithMap(m map[string]interface{}) error + func (l *Logger) SetCtxKeys(keys ...interface{}) + func (l *Logger) SetDebug(debug bool) + func (l *Logger) SetFile(pattern string) + func (l *Logger) SetFlags(flags int) + func (l *Logger) SetHeaderPrint(enabled bool) + func (l *Logger) SetLevel(level int) + func (l *Logger) SetLevelPrefix(level int, prefix string) + func (l *Logger) SetLevelPrefixes(prefixes map[int]string) + func (l *Logger) SetLevelStr(levelStr string) error + func (l *Logger) SetPath(path string) error + func (l *Logger) SetPrefix(prefix string) + func (l *Logger) SetStack(enabled bool) + func (l *Logger) SetStackFilter(filter string) + func (l *Logger) SetStackSkip(skip int) + func (l *Logger) SetStdoutPrint(enabled bool) + func (l *Logger) SetWriter(writer io.Writer) + func (l *Logger) Skip(skip int) *Logger + func (l *Logger) Stack(enabled bool, skip ...int) *Logger + func (l *Logger) StackWithFilter(filter string) *Logger + func (l *Logger) Stdout(enabled ...bool) *Logger + func (l *Logger) To(writer io.Writer) *Logger + func (l *Logger) Warning(v ...interface{}) + func (l *Logger) Warningf(format string, v ...interface{}) + func (l *Logger) Write(p []byte) (n int, err error)