logging

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureLogger

func ConfigureLogger(cfg Config)

ConfigureLogger sets up the logger based on the provided configuration.

func Debugf

func Debugf(format string, args ...interface{})

Debugf logs a message at level Debug on the standard logger.

func Errorf

func Errorf(format string, args ...interface{})

Errorf logs a message at level Error on the standard logger.

func Fatal

func Fatal(args ...interface{})

Fatal logs a message at level Fatal on the standard logger.

func Fatalf

func Fatalf(format string, args ...interface{})

Fatalf logs a message at level Fatal on the standard logger.

func Infof

func Infof(format string, args ...interface{})

Infof logs a message at level Info on the standard logger.

func Warnf

func Warnf(format string, args ...interface{})

Warnf logs a message at level Warn on the standard logger.

func WithError

func WithError(err error) *logrus.Entry

WithError creates a new log entry with the given error.

func WithField

func WithField(key string, value interface{}) *logrus.Entry

WithField creates a new log entry with the given key and value.

func WithFields

func WithFields(fields logrus.Fields) *logrus.Entry

WithFields creates a new log entry with the given fields.

Types

type Config

type Config struct {
	Level string `json:"level" yaml:"level"`
}

Config represents the logging configuration. This is a subset of the main config to avoid circular dependencies.

Jump to

Keyboard shortcuts

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