Documentation ¶
Overview ¶
Package xlog provides an extensible acme library
Index ¶
- func AddCallerSkip(n int) xlogcore.XLog
- func Debug(args ...interface{})
- func Debugf(tpl string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(tpl string, args ...interface{})
- func Fast() xlogcore.FastXLog
- func Fatal(args ...interface{})
- func Fatalf(tpl string, args ...interface{})
- func FromCtx(ctx context.Context) xlogcore.XLog
- func Info(args ...interface{})
- func Infof(tpl string, args ...interface{})
- func NewFastXLog(config xlogcore.Config) (xlogcore.FastXLog, error)
- func NewXLog(config xlogcore.Config) (xlogcore.XLog, error)
- func Panic(args ...interface{})
- func Panicf(tpl string, args ...interface{})
- func SetConfig(cfg xlogcore.Config) (err error)
- func Sync()
- func ToCtx(ctx context.Context, kvs ...interface{}) context.Context
- func Warn(args ...interface{})
- func Warnf(tpl string, args ...interface{})
- func With(kvs ...interface{}) xlogcore.XLog
- func WithOptions(opts ...xlogcore.Option) xlogcore.XLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCallerSkip ¶
AddCallerSkip increases the number of callers skipped by caller annotation.
func Debugf ¶
func Debugf(tpl string, args ...interface{})
Debugf construct and log a Debug message.
func Errorf ¶
func Errorf(tpl string, args ...interface{})
Errorf construct and log a Error message.
func Fast ¶
Fast converting XLog to FastXLog. The operation is quite inexpensive.
func Fatal ¶
func Fatal(args ...interface{})
Fatal construct and log a Fatal message, then calls os.Exit(1).
func Fatalf ¶
func Fatalf(tpl string, args ...interface{})
Fatalf construct and log a Fatal message.
func NewFastXLog ¶
NewFastXLog returns FastXLog.
func Panicf ¶
func Panicf(tpl string, args ...interface{})
Panicf construct and log a Panic message.
func SetConfig ¶
SetConfig reconfigures the dft logger.
func ToCtx ¶
ToCtx adds the XLog, with a variadic number of fields, to ctx and returns the resulting context.Context.
func With ¶
With adds a variadic number of fields to the logging context.
Types ¶
This section is empty.