logger

package
v1.1.59 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	*zap.SugaredLogger
	// contains filtered or unexported fields
}

Logger wraps zap.SugaredLogger to provide logging functionality

var L *Logger

Global logger for convenience

func GetLogger

func GetLogger() *Logger

func GetLoggerWithContext

func GetLoggerWithContext(ctx context.Context) *Logger

func NewLogger

func NewLogger(cfg *config.Configuration) (*Logger, error)

NewLogger creates and returns a new Logger instance

func (*Logger) Debugf

func (l *Logger) Debugf(template string, args ...interface{})

Helper methods to make logging more convenient

func (*Logger) Debugw added in v1.0.60

func (l *Logger) Debugw(msg string, keysAndValues ...interface{})

Structured logging methods that include context fields

func (*Logger) Errorf

func (l *Logger) Errorf(template string, args ...interface{})

func (*Logger) Errorw added in v1.0.60

func (l *Logger) Errorw(msg string, keysAndValues ...interface{})

func (*Logger) Fatalf

func (l *Logger) Fatalf(template string, args ...interface{})

func (*Logger) GetEntLogger added in v1.0.60

func (l *Logger) GetEntLogger() func(...any)

GetEntLogger returns an ent-compatible logger function

func (*Logger) GetGinLogger added in v1.0.60

func (l *Logger) GetGinLogger() *ginLogger

GetGinLogger returns a gin-compatible logger

func (*Logger) GetRetryableHTTPLogger added in v1.0.27

func (l *Logger) GetRetryableHTTPLogger() *retryableHTTPLogger

GetRetryableHTTPLogger returns a retryable HTTP client-compatible logger

func (*Logger) GetTemporalLogger added in v1.0.27

func (l *Logger) GetTemporalLogger() log.Logger

GetTemporalLogger returns a temporal-compatible logger

func (*Logger) Infof

func (l *Logger) Infof(template string, args ...interface{})

func (*Logger) Infow added in v1.0.60

func (l *Logger) Infow(msg string, keysAndValues ...interface{})

func (*Logger) Warnf

func (l *Logger) Warnf(template string, args ...interface{})

func (*Logger) Warnw added in v1.0.60

func (l *Logger) Warnw(msg string, keysAndValues ...interface{})

func (*Logger) WithContext

func (l *Logger) WithContext(ctx context.Context) *Logger

Jump to

Keyboard shortcuts

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