logutil

package
v0.0.0-...-8e84926 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureLogger

func ConfigureLogger(pretty bool)

ConfigureLogger configures the logger

func SetLoggingLevel

func SetLoggingLevel(level Level)

SetLoggingLevel sets the logging level

Types

type Level

type Level string
const (
	// ErrorLevel level. Logs. Used for errors that should definitely be noted.
	LevelError Level = "ERROR"
	// WarnLevel level. Non-critical entries that deserve eyes.
	LevelWarn Level = "WARN"
	// InfoLevel level. General operational entries about what's going on inside the
	// application.
	LevelInfo Level = "INFO"
	// DebugLevel level. Usually only enabled when debugging. Very verbose logging.
	LevelDebug Level = "DEBUG"
)

Jump to

Keyboard shortcuts

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