Documentation ¶
Index ¶
- Constants
- Variables
- func Init()
- func TraceContext(ctx context.Context, t Tracer) context.Context
- type ILog
- type TLog
- func (tl *TLog) Debugf(ctx context.Context, tag string, format string, args ...interface{})
- func (tl *TLog) Enable(level zapcore.Level) bool
- func (tl *TLog) Errorf(ctx context.Context, tag string, format string, args ...interface{})
- func (tl *TLog) Fatalf(ctx context.Context, tag string, format string, args ...interface{})
- func (tl *TLog) Infof(ctx context.Context, tag string, format string, args ...interface{})
- func (tl *TLog) Warnf(ctx context.Context, tag string, format string, args ...interface{})
- type Tracer
Constants ¶
View Source
const DLTagUndefined = " _undef"
DLTagUndefined ...
View Source
const DebugTag = " fdebug"
DebugTag ...
Variables ¶
View Source
var NewTracer = func(data map[string]string) *tracer {
return &tracer{data: data}
}
Functions ¶
Types ¶
type ILog ¶
type ILog interface { Enable(level zapcore.Level) bool Debugf(ctx context.Context, tag string, format string, args ...interface{}) Infof(ctx context.Context, tag string, format string, args ...interface{}) Warnf(ctx context.Context, tag string, format string, args ...interface{}) Errorf(ctx context.Context, tag string, format string, args ...interface{}) Fatalf(ctx context.Context, tag string, format string, args ...interface{}) }
ILog log interface
var Handler ILog
Handler zapLog
Click to show internal directories.
Click to hide internal directories.