log

package
v0.24.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLevel

func SetLevel(level Level)

SetLevel updates the global log level to the provided level if it is valid.

Types

type Level

type Level int

Level represents log levels.

const (
	Off Level = iota
	Fatal
	Error
	Warn
	Info
	Audit
	Debug
	Trace
)

Define log levels as constants.

func GetLevel

func GetLevel() Level

GetLevel retrieves the current global log level.

Directories

Path Synopsis
Package std provides a simple and flexible logging library with various log levels.
Package std provides a simple and flexible logging library with various log levels.

Jump to

Keyboard shortcuts

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