log

package
v1.16.39 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: GPL-3.0, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseLogLevel

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