Versions in this module Expand all Collapse all v0 v0.6.3 May 27, 2021 v0.6.2 Jan 28, 2021 Changes in this version + func Close() (err error) + func Debug(format string, args ...interface{}) + func Debugc(ctx context.Context, format string, args ...interface{}) + func Debugv(ctx context.Context, args ...D) + func Debugw(ctx context.Context, args ...interface{}) + func Error(format string, args ...interface{}) + func Errorc(ctx context.Context, format string, args ...interface{}) + func Errorv(ctx context.Context, args ...D) + func Errorw(ctx context.Context, args ...interface{}) + func Fatal(format string, args ...interface{}) + func Fatalc(ctx context.Context, format string, args ...interface{}) + func Fatalv(ctx context.Context, args ...D) + func Fatalw(ctx context.Context, 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 Infow(ctx context.Context, args ...interface{}) + func Init(conf *Config) + func SetFormat(format string) + func Warn(format string, args ...interface{}) + func Warnc(ctx context.Context, format string, args ...interface{}) + func Warnv(ctx context.Context, args ...D) + func Warnw(ctx context.Context, args ...interface{}) + type Config struct + Dir string + Family string + FileBufferSize int64 + Filter []string + Host string + MaxLogFile int + Module map[string]int32 + RotateSize int64 + Stdout bool + V int32 + type D = core.Field + 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(key string, value string) D + func KVUint(key string, value uint) D + func KVUint64(key string, value uint64) D + type FileHandler struct + func NewFile(dir string, bufferSize, rotateSize int64, maxLogFile int) *FileHandler + func (h *FileHandler) Close() error + func (h *FileHandler) Log(ctx context.Context, lv Level, args ...D) + func (h *FileHandler) SetFormat(format string) + type Handler interface + Close func() error + Log func(context.Context, Level, ...D) + SetFormat func(string) + type Handlers struct + func (hs Handlers) Close() (err error) + func (hs Handlers) Log(ctx context.Context, lv Level, d ...D) + func (hs Handlers) SetFormat(format string) + type Level int + func (l Level) String() string + type Render interface + Render func(io.Writer, map[string]interface{}) error + RenderString func(map[string]interface{}) string + type StdoutHandler struct + func NewStdout() *StdoutHandler + func (h *StdoutHandler) Close() error + func (h *StdoutHandler) Log(ctx context.Context, lv Level, args ...D) + func (h *StdoutHandler) SetFormat(format string) + type Verbose bool + func V(v int32) Verbose + func (v Verbose) Close() (err error) + func (v Verbose) Info(format string, args ...interface{}) + func (v Verbose) Infov(ctx context.Context, args ...D) + func (v Verbose) Infow(ctx context.Context, args ...interface{})