Documentation ¶
Index ¶
- Constants
- func Debug(tctx *TraceContext, msg string, fields ...zap.Field)
- func Debugf(tctx *TraceContext, msg string, fields ...interface{})
- func Error(tctx *TraceContext, msg string, fields ...zap.Field)
- func Errorf(tctx *TraceContext, msg string, fields ...interface{})
- func Fatal(tctx *TraceContext, msg string, fields ...zap.Field)
- func Fatalf(tctx *TraceContext, msg string, fields ...interface{})
- func Info(tctx *TraceContext, msg string, fields ...zap.Field)
- func Infof(tctx *TraceContext, msg string, fields ...interface{})
- func Init(conf2 *Config)
- func NewZapCoreLevel(levelStr string) (level zapcore.Level)
- func Sync()
- func Warn(tctx *TraceContext, msg string, fields ...zap.Field)
- func Warnf(tctx *TraceContext, msg string, fields ...interface{})
- type Config
- type TraceContext
Constants ¶
View Source
const ( LevelDebug = "Debug" LevelInfo = "Info" LevelWarn = "Warn" )
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(tctx *TraceContext, msg string, fields ...interface{})
func Errorf ¶
func Errorf(tctx *TraceContext, msg string, fields ...interface{})
func Fatalf ¶
func Fatalf(tctx *TraceContext, msg string, fields ...interface{})
func Infof ¶
func Infof(tctx *TraceContext, msg string, fields ...interface{})
func NewZapCoreLevel ¶
func Warnf ¶
func Warnf(tctx *TraceContext, msg string, fields ...interface{})
Types ¶
type TraceContext ¶
type TraceContext struct {
// contains filtered or unexported fields
}
func NewTraceContext ¶
func NewTraceContext() (tctx *TraceContext)
func (*TraceContext) GetTraceId ¶
func (self *TraceContext) GetTraceId() (traceId string)
func (*TraceContext) MarshalLogObject ¶
func (self *TraceContext) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
Click to show internal directories.
Click to hide internal directories.