Versions in this module Expand all Collapse all v1 v1.1.2 Feb 21, 2022 v1.1.1 Sep 13, 2021 v1.1.0 Jun 18, 2021 Changes in this version + func DelContextField(key string) + func GetContextField(key string) (value interface{}) + func SetContextField(key string, value interface{}) + func SetContextFields(fields Fields) type Log + CxtFields Fields v1.0.10 Jun 15, 2021 Changes in this version + func EnableAsyncDriver() + type AsyncDriver struct + func (t *AsyncDriver) GetLevel(_ string) Level + func (t *AsyncDriver) Name() string + func (t *AsyncDriver) Print(l *Log) v1.0.9 May 7, 2021 v1.0.8 May 4, 2021 Changes in this version + const RootLoggerName + func SetLoggerLevel(loggerName string, level Level) + func SetLoggerLevelMap(levelMap map[string]Level) + type LevelSetting struct type Stack + func ParseStack2(pc uintptr) (s *Stack) v1.0.7 Jul 10, 2020 Changes in this version type Level + const FatalLevel v1.0.6 Mar 9, 2020 v1.0.5 Dec 14, 2019 v1.0.4 Dec 14, 2019 v1.0.3 Dec 8, 2019 v1.0.2 Jun 21, 2019 v1.0.1 Jun 19, 2019 v1.0.0 Jun 19, 2019 Changes in this version + 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 GetContext() string + func Info(v ...interface{}) + func Infof(format string, v ...interface{}) + func Panic(v ...interface{}) + func Panicf(format string, v ...interface{}) + func RegisterHook(f func(*Log)) + func SetContext(name string) + func SetDriver(d Driver) + func SetLevel(l Level) + func Trace(v ...interface{}) + func Tracef(format string, v ...interface{}) + func Warn(v ...interface{}) + func Warnf(format string, v ...interface{}) + type Driver interface + GetLevel func(logger string) Level + Name func() string + Print func(l *Log) + type Fields map[string]interface + func NewFields(fields ...Fields) Fields + type Level int + const DebugLevel + const ErrorLevel + const FataLevel + const InfoLevel + const PanicLevel + const TraceLevel + const WarnLevel + func (l Level) String() string + type Log struct + Args []interface{} + DebugStack *string + Fields Fields + Format *string + Gid int + Level Level + Logger string + Pid int + Stack *Stack + Time int64 + func NewLog(level Level, pc uintptr, debugStack *string, format *string, ...) *Log + func (l *Log) Uptime() int64 + type Logger struct + func GetLogger() *Logger + func NewLogger(name string) *Logger + func (l *Logger) BindFields(fields Fields) + 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) Info(v ...interface{}) + func (l *Logger) Infof(format string, v ...interface{}) + func (l *Logger) IsDebugEnabled() bool + func (l *Logger) IsErrorEnabled() bool + func (l *Logger) IsFatalEnabled() bool + func (l *Logger) IsInfoEnabled() bool + func (l *Logger) IsPanicEnabled() bool + func (l *Logger) IsTraceEnabled() bool + func (l *Logger) IsWarnEnabled() bool + func (l *Logger) Level() Level + func (l *Logger) Name() string + func (l *Logger) Panic(v ...interface{}) + func (l *Logger) Panicf(format string, v ...interface{}) + func (l *Logger) Trace(v ...interface{}) + func (l *Logger) Tracef(format string, v ...interface{}) + func (l *Logger) Warn(v ...interface{}) + func (l *Logger) Warnf(format string, v ...interface{}) + func (l *Logger) WithFields(fields Fields) *Logger + type Stack struct + Filename string + Function string + Line int + Package string + func ParseStack(pc uintptr) (s *Stack) + type StdDriver struct + func (p *StdDriver) GetLevel(logger string) Level + func (p *StdDriver) Name() string + func (p *StdDriver) Print(l *Log)