logging

package
v2.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevelDebug = slog.LevelDebug
	// LevelTrace is a custom log level for tracing every function call entry/exit
	LevelTrace = slog.Level(-8)
	// LevelExtraDebug is a custom log level for especially verbose debug message like HTTP request/response dumps
	LevelExtraDebug = slog.Level(-12)
)

Variables

This section is empty.

Functions

func EnableDebug

func EnableDebug()

func EnableExtraDebug

func EnableExtraDebug()

func EnableTrace

func EnableTrace()

func GetLevel

func GetLevel() slog.Level

func Run

func Run()

Run sets up the logging for the program The default log file path is in Merlin's root directory at data/log/merlinServerLog.txt

func SetLevel

func SetLevel(newLevel slog.Level)

Types

This section is empty.

Jump to

Keyboard shortcuts

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