Documentation ¶
Index ¶
- Constants
- func WithCtx(ctx context.Context, l *CBLogger) context.Context
- type CBLogger
- func (c *CBLogger) Debug(msg string, fields ...zap.Field)
- func (c *CBLogger) Error(msg string, fields ...zap.Field)
- func (c *CBLogger) Fatal(msg string, fields ...zap.Field)
- func (c *CBLogger) Info(msg string, fields ...zap.Field)
- func (c *CBLogger) Panic(msg string, fields ...zap.Field)
- func (c *CBLogger) Warn(msg string, fields ...zap.Field)
- func (l *CBLogger) With(f zapcore.Field) *CBLogger
Constants ¶
View Source
const FUNCTION_SKIP_LEVEL = 1
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CBLogger ¶
type CBLogger struct {
// contains filtered or unexported fields
}
func FromCtx ¶
FromCtx returns the Logger associated with the ctx. If no logger is associated, the default logger is returned, unless it is nil in which case a disabled logger is returned.
Click to show internal directories.
Click to hide internal directories.