Documentation ¶
Index ¶
- func Access(format string, args ...interface{})
- func Accessc(ctx context.Context, format string, args ...interface{})
- func Debug(format string, args ...interface{})
- func Debugc(ctx context.Context, format string, args ...interface{})
- func Debugv(ctx context.Context, args ...D)
- func Error(format string, args ...interface{})
- func Errorc(ctx context.Context, format string, args ...interface{})
- func Errorv(ctx context.Context, args ...D)
- func Fatalv(ctx context.Context, args ...D)
- func Fetal(format string, args ...interface{})
- func Fetalc(ctx context.Context, format string, args ...interface{})
- func Info(format string, args ...interface{})
- func Infoc(ctx context.Context, format string, args ...interface{})
- func Infov(ctx context.Context, args ...D)
- func Init(conf *Config)
- func Warn(format string, args ...interface{})
- func Warnc(ctx context.Context, format string, args ...interface{})
- func Warnv(ctx context.Context, args ...D)
- type Config
- type D
- func KV(key string, value interface{}) D
- func KVDuration(key string, value time.Duration) D
- func KVFloat32(key string, value float32) D
- func KVFloat64(key string, value float64) D
- func KVInt(key string, value int) D
- func KVInt64(key string, value int64) D
- func KVString(k, v string) D
- func KVUint(key string, value uint) D
- func KVUint64(key string, value uint64) D
- type Field
- type FieldType
- type Handle
- type Handles
- type Level
- type Render
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // Filter tell log handler which field are sensitive message, use * instead. Filter []string // file Dir string // stdout Stdout bool Nlog bool Source bool // contains filtered or unexported fields }
Config ...
type D ¶
type D Field
D ...
func KV ¶
KV return a log kv for logging field. NOTE: use KV{type name} can avoid object alloc and get better performance. []~( ̄▽ ̄)~*干杯
func KVDuration ¶
KVDuration construct Field with Duration value.
Click to show internal directories.
Click to hide internal directories.