log

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...any)

Debug Info logs a message at level Debug

func EnrichContext

func EnrichContext(ctx context.Context, fields logrus.Fields) context.Context

func Error

func Error(args ...any)

Error logs a message at level Error

func Fatal

func Fatal(args ...any)

Fatal logs a message at level Fatal then the process will exit with status set to 1

func FromContext

func FromContext(ctx context.Context) *logrus.Entry

func Info

func Info(args ...any)

Info logs a message at level Info

func Init

func Init(isDev bool)

func SetLogLevel

func SetLogLevel(aLogLevel string)

SetLogLevel : Configure log level

func Warn

func Warn(args ...any)

Warn logs a message at level Warn

func WithError

func WithError(err error) *logrus.Entry

WithError creates an entry from the standard logger and adds an error field to it

func WithFields

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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