Documentation
¶
Index ¶
Constants ¶
View Source
const ( LoggerType = ctxLogger("type") LoggerSpanID = ctxLogger("spanID") LoggerFlowID = ctxLogger("flowID") LoggerTranID = ctxLogger("tranID") LoggerReqID = ctxLogger("reid") LoggerAdapterID = ctxLogger("adapterID") LoggerPartnerID = ctxLogger("partnerID") LoggerWorkerID = ctxLogger("workerID") )
Variables ¶
View Source
var FieldsLog = []ctxLogger{LoggerType, LoggerSpanID, LoggerFlowID, LoggerTranID, LoggerReqID, LoggerAdapterID, LoggerPartnerID, LoggerWorkerID}
Functions ¶
Types ¶
type Logger ¶
type Logger interface {
Infof(format string, v ...interface{})
Debugf(format string, v ...interface{})
Warnf(format string, v ...interface{})
Errorf(format string, v ...interface{})
Panicf(format string, v ...interface{})
InfoWithContext(ctx context.Context, format string, v ...interface{})
DebugWithContext(ctx context.Context, format string, v ...interface{})
WarnWithContext(ctx context.Context, format string, v ...interface{})
ErrorWithContext(ctx context.Context, format string, v ...interface{})
PanicWithContext(ctx context.Context, format string, v ...interface{})
WithField(field string, value interface{}) Logger
WithFieldNoAdds(field string, value interface{}) Logger
Close() error
}
Logger is an interface of logging operations
Click to show internal directories.
Click to hide internal directories.