Documentation ¶
Index ¶
- Constants
- type Entry
- func (entry *Entry) Data(value interface{}) Logger
- func (entry *Entry) Debug(args ...interface{})
- func (entry *Entry) Debugf(format string, args ...interface{})
- func (entry *Entry) Err(err error) Logger
- func (entry *Entry) Error(args ...interface{})
- func (entry *Entry) Errorf(format string, args ...interface{})
- func (entry *Entry) Fatal(args ...interface{})
- func (entry *Entry) Fatalf(format string, args ...interface{})
- func (entry *Entry) Field(key string, value interface{}) Logger
- func (entry *Entry) Fields(fields context.Fields) Logger
- func (entry *Entry) Info(args ...interface{})
- func (entry *Entry) Infof(format string, args ...interface{})
- func (entry *Entry) Level(level Level) Logger
- func (entry *Entry) Log(level Level, args ...interface{})
- func (entry *Entry) Logf(level Level, format string, args ...interface{})
- func (entry *Entry) Warn(args ...interface{})
- func (entry *Entry) Warnf(format string, args ...interface{})
- type Grade
- type Level
- type Log
- type Logger
- type Strap
Constants ¶
View Source
const ( GradeDebug = "debug" GradeInfo = "info" GradeWarn = "warn" GradeError = "error" GradeFatal = "fatal" )
View Source
const (
Module = "module"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Level(level Level) Logger Field(key string, value interface{}) Logger Fields(fields context.Fields) Logger Err(err error) Logger Data(value interface{}) Logger Debug(args ...interface{}) Debugf(format string, args ...interface{}) Info(args ...interface{}) Infof(format string, args ...interface{}) Warn(args ...interface{}) Warnf(format string, args ...interface{}) Error(args ...interface{}) Errorf(format string, args ...interface{}) Fatal(args ...interface{}) Fatalf(format string, args ...interface{}) }
Click to show internal directories.
Click to hide internal directories.