log

package
v1.16.20 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: GPL-3.0, LGPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseLogLevel added in v0.8.6

func ParseLogLevel(level string) (slog.Level, error)

ParseLogLevel parses a string log level

Types

type Logger

type Logger struct {
	log.Logger
}

func InitLogger

func InitLogger(alias string, level string, jsonFormat bool, writer io.Writer) (Logger, error)

InitLogger initializes logger with alias and sets the log level and format with the original os.StdErr interface along with the context logger.

func (*Logger) SetLogLevel

func (l *Logger) SetLogLevel(level string) error

SetLogLevel sets the log level of initialized log handler.

Jump to

Keyboard shortcuts

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