l

package
v1.1.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package l contains helper logging functions

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL