logger

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

func Log(logType string, messages ...any)

Log is a function that logs messages with the specified log type and caller information.

func LogObjLogger

func LogObjLogger[T any](obj *T, logType string, messages ...string)

LogObjLogger is a function that logs messages with the specified log type.

func SetDebug

func SetDebug(d bool)

SetDebug is a function that sets the debug flag for logging.

Types

type LogType

type LogType string
const (
	LogTypeNotice  LogType = "notice"
	LogTypeInfo    LogType = "info"
	LogTypeDebug   LogType = "debug"
	LogTypeError   LogType = "error"
	LogTypeWarn    LogType = "warn"
	LogTypeFatal   LogType = "fatal"
	LogTypePanic   LogType = "panic"
	LogTypeSuccess LogType = "success"
)

Jump to

Keyboard shortcuts

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