Documentation ¶
Index ¶
- func Caller(depth int) string
- func Debug(ctx context.Context, a ...interface{})
- func Debugf(ctx context.Context, s string, a ...interface{})
- func EnableSyslog(proto, addr string) error
- func Error(ctx context.Context, a ...interface{})
- func Errorf(ctx context.Context, s string, a ...interface{})
- func Fatal(ctx context.Context, a ...interface{})
- func Fatalf(ctx context.Context, s string, a ...interface{})
- func Hook(hook func(ctx context.Context, kvs []kv.Field) []kv.Field)
- func Info(ctx context.Context, a ...interface{})
- func Infof(ctx context.Context, s string, a ...interface{})
- func Level() level.LEVEL
- func Log(ctx context.Context, lvl level.LEVEL, a ...interface{})
- func Logf(ctx context.Context, lvl level.LEVEL, s string, a ...interface{})
- func Panic(ctx context.Context, a ...interface{})
- func Panicf(ctx context.Context, 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(ctx context.Context, a ...interface{})
- func Tracef(ctx context.Context, s string, a ...interface{})
- func Warn(ctx context.Context, a ...interface{})
- func Warnf(ctx context.Context, 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) WithContext(ctx context.Context) Entry
- func (e Entry) WithField(key string, value interface{}) Entry
- func (e Entry) WithFields(kvs ...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 ¶
type Entry ¶ added in v0.3.8
type Entry struct {
// contains filtered or unexported fields
}
func WithContext ¶ added in v0.7.1
func WithFields ¶ added in v0.3.8
func WithFields(fields ...kv.Field) Entry
func (Entry) WithFields ¶ added in v0.3.8
Click to show internal directories.
Click to hide internal directories.