logutils

package
v0.19.14 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLogFormat

func SetLogFormat(logFormat string)

SetLogFormat to use either JSON or text based logging.

func SetLogLevel

func SetLogLevel(logLevel string)

SetLogLevel configures the logger to use the provided log level. Log level is treated case-insensitive.

func SetupTestLogging

func SetupTestLogging()

SetupTestLogging configures the logger to use the debug log level and use a text output formatter.

Types

type UTCFormatter

type UTCFormatter struct {
	logrus.Formatter
}

UTCFormatter is a log formatter that prints with UTC timestamps.

func (*UTCFormatter) Format

func (u *UTCFormatter) Format(e *logrus.Entry) ([]byte, error)

Format the entry with a UTC timestamp.

Jump to

Keyboard shortcuts

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