Documentation
¶
Overview ¶
Package l contains helper logging functions
Index ¶
- type CapiLogger
- func (l *CapiLogger) Close()
- func (l *CapiLogger) Debug(format string, a ...any)
- func (l *CapiLogger) DebugCtx(pCtx *ctx.MessageProcessingContext, format string, a ...any)
- func (l *CapiLogger) Error(format string, a ...any)
- func (l *CapiLogger) ErrorCtx(pCtx *ctx.MessageProcessingContext, format string, a ...any)
- func (l *CapiLogger) Info(format string, a ...any)
- func (l *CapiLogger) InfoCtx(pCtx *ctx.MessageProcessingContext, format string, a ...any)
- func (l *CapiLogger) PopF()
- func (l *CapiLogger) PushF(functionName string)
- func (l *CapiLogger) Warn(format string, a ...any)
- func (l *CapiLogger) WarnCtx(pCtx *ctx.MessageProcessingContext, format string, a ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CapiLogger ¶ added in v1.1.14
type CapiLogger struct { ZapLogger *zap.Logger ZapMachine zapcore.Field ZapThread zapcore.Field SavedZapConfig zap.Config AtomicThreadCounter *int64 ZapFunction zapcore.Field FunctionStack []string }
func NewLoggerFromEnvConfig ¶
func NewLoggerFromEnvConfig(envConfig *env.EnvConfig) (*CapiLogger, error)
func NewLoggerFromLogger ¶
func NewLoggerFromLogger(srcLogger *CapiLogger) (*CapiLogger, error)
func (*CapiLogger) Close ¶ added in v1.1.14
func (l *CapiLogger) Close()
func (*CapiLogger) Debug ¶ added in v1.1.14
func (l *CapiLogger) Debug(format string, a ...any)
func (*CapiLogger) DebugCtx ¶ added in v1.1.14
func (l *CapiLogger) DebugCtx(pCtx *ctx.MessageProcessingContext, format string, a ...any)
func (*CapiLogger) Error ¶ added in v1.1.14
func (l *CapiLogger) Error(format string, a ...any)
func (*CapiLogger) ErrorCtx ¶ added in v1.1.14
func (l *CapiLogger) ErrorCtx(pCtx *ctx.MessageProcessingContext, format string, a ...any)
func (*CapiLogger) Info ¶ added in v1.1.14
func (l *CapiLogger) Info(format string, a ...any)
func (*CapiLogger) InfoCtx ¶ added in v1.1.14
func (l *CapiLogger) InfoCtx(pCtx *ctx.MessageProcessingContext, format string, a ...any)
func (*CapiLogger) PopF ¶ added in v1.1.14
func (l *CapiLogger) PopF()
func (*CapiLogger) PushF ¶ added in v1.1.14
func (l *CapiLogger) PushF(functionName string)
func (*CapiLogger) Warn ¶ added in v1.1.14
func (l *CapiLogger) Warn(format string, a ...any)
func (*CapiLogger) WarnCtx ¶ added in v1.1.14
func (l *CapiLogger) WarnCtx(pCtx *ctx.MessageProcessingContext, format string, a ...any)
Click to show internal directories.
Click to hide internal directories.