Versions in this module Expand all Collapse all v1 v1.0.3 May 20, 2019 v1.0.2 May 10, 2019 v1.0.1 May 4, 2019 v1.0.0 Mar 17, 2019 Changes in this version + const MaxCachedBufferSize + const OpenFlag + const OpenPerm + var ErrMissingValue = errors.New("(MISSING)") + var PipeKVFormatter = &pipeKvFormatter + var RotateSignal = syscall.SIGUSR1 + func Debug(ctx context.Context, msg string, keyvals ...interface{}) + func Enabled(level Level) bool + func Error(ctx context.Context, msg string, keyvals ...interface{}) + func Fatal(ctx context.Context, msg string, keyvals ...interface{}) + func GetStack(calldepth int) []byte + func Info(ctx context.Context, msg string, keyvals ...interface{}) + func SetLevel(level Level) + func SetLevelByName(levelName string) + func SetLogger(logger *Logger) + func Trace(ctx context.Context, msg string, keyvals ...interface{}) + func Warning(ctx context.Context, msg string, keyvals ...interface{}) + func WithContext(ctx context.Context, keyvals ...interface{}) context.Context + type Appender interface + Append func(*Entry) + type Context struct + func (c *Context) With(keyvals ...interface{}) *Context + func (c *Context) WithPrefix(keyvals ...interface{}) *Context + type Entry struct + File string + KeyVals []interface{} + Level Level + Line int + Msg string + Tag string + Time time.Time + type FileAppender struct + func NewFileAppender(levelMask Level, fileName string, formatter Formatter) (appender *FileAppender, err error) + func (appender *FileAppender) Append(entry *Entry) + func (appender *FileAppender) DisableLock() + func (appender *FileAppender) Rotate() + type Formatter interface + Format func(*Entry) (*bytes.Buffer, error) + type Level uint8 + const LevelDebug + const LevelError + const LevelFatal + const LevelInfo + const LevelMask + const LevelTrace + const LevelWarning + func GetLevel() Level + func (level Level) String() string + type LevelName string + func (levelName LevelName) ToLevel() Level + type Logger struct + func GetLogger() *Logger + func NewLogger(appenders ...Appender) *Logger + func (logger *Logger) Debug(ctx context.Context, msg string, keyvals ...interface{}) + func (logger *Logger) Enabled(level Level) bool + func (logger *Logger) Error(ctx context.Context, msg string, keyvals ...interface{}) + func (logger *Logger) Fatal(ctx context.Context, msg string, keyvals ...interface{}) + func (logger *Logger) GetLevel() Level + func (logger *Logger) Info(ctx context.Context, msg string, keyvals ...interface{}) + func (logger *Logger) SetLevel(level Level) + func (logger *Logger) Tag(tag string) *TagLogger + func (logger *Logger) Trace(ctx context.Context, msg string, keyvals ...interface{}) + func (logger *Logger) Warning(ctx context.Context, msg string, keyvals ...interface{}) + type RotatableAppender interface + Rotate func() + type StdAppender struct + func NewStdAppender(formatter Formatter) *StdAppender + func (appender *StdAppender) Append(entry *Entry) + type TagLogger struct + func Tag(tag string) *TagLogger + func (logger *TagLogger) Debug(ctx context.Context, msg string, keyvals ...interface{}) + func (logger *TagLogger) Error(ctx context.Context, msg string, keyvals ...interface{}) + func (logger *TagLogger) Fatal(ctx context.Context, msg string, keyvals ...interface{}) + func (logger *TagLogger) Info(ctx context.Context, msg string, keyvals ...interface{}) + func (logger *TagLogger) Trace(ctx context.Context, msg string, keyvals ...interface{}) + func (logger *TagLogger) Warning(ctx context.Context, msg string, keyvals ...interface{}) + type Valuer func(context.Context) interface