Documentation ¶
Index ¶
- func Caller(depth int) string
- func Debug(a ...interface{})
- func Debugf(s string, a ...interface{})
- func EnableSyslog(proto, addr string) error
- func Error(a ...interface{})
- func Errorf(s string, a ...interface{})
- func Fatal(a ...interface{})
- func Fatalf(s string, a ...interface{})
- func Info(a ...interface{})
- func Infof(s string, a ...interface{})
- func Level() level.LEVEL
- func Log(lvl level.LEVEL, a ...interface{})
- func Logf(lvl level.LEVEL, s string, a ...interface{})
- func Panic(a ...interface{})
- func Panicf(s string, a ...interface{})
- func ParseLevel(str string) error
- func Print(a ...interface{})
- func Printf(s string, a ...interface{})
- func SetLevel(lvl level.LEVEL)
- func Trace(a ...interface{})
- func Tracef(s string, a ...interface{})
- func Warn(a ...interface{})
- func Warnf(s string, a ...interface{})
- type Entry
- func (e Entry) Debug(a ...interface{})
- func (e Entry) Debugf(s string, a ...interface{})
- func (e Entry) Error(a ...interface{})
- func (e Entry) Errorf(s string, a ...interface{})
- func (e Entry) Fatal(a ...interface{})
- func (e Entry) Fatalf(s string, a ...interface{})
- func (e Entry) Info(a ...interface{})
- func (e Entry) Infof(s string, a ...interface{})
- func (e Entry) Log(lvl level.LEVEL, a ...interface{})
- func (e Entry) Logf(lvl level.LEVEL, s string, a ...interface{})
- func (e Entry) Panic(a ...interface{})
- func (e Entry) Panicf(s string, a ...interface{})
- func (e Entry) Print(a ...interface{})
- func (e Entry) Printf(s string, a ...interface{})
- func (e Entry) Trace(a ...interface{})
- func (e Entry) Tracef(s string, a ...interface{})
- func (e Entry) Warn(a ...interface{})
- func (e Entry) Warnf(s string, a ...interface{})
- func (e Entry) WithField(key string, value interface{}) Entry
- func (e Entry) WithFields(fields ...kv.Field) Entry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Caller ¶ added in v0.3.8
Caller fetches the calling function name, skipping 'depth'. Results are cached per PC.
func EnableSyslog ¶ added in v0.3.8
EnableSyslog will enabling logging to the syslog at given address.
func ParseLevel ¶ added in v0.3.8
ParseLevel will parse the log level from given string and set to appropriate level.
func Print ¶ added in v0.3.8
func Print(a ...interface{})
Print will log formatted args to the stdout log output.
Types ¶
Click to show internal directories.
Click to hide internal directories.