log

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogLevelDebug LogLevel = iota
	LogLevelInfo
	LogLevelWarn
	LogLevelError
	LogLevelFatal
	LogLevelPanic
	InfoColor  = "\033[34m"
	WarnColor  = "\033[33m"
	ErrorColor = "\033[31m"
	DebugColor = "\033[32m"
	ResetColor = "\033[0m"
	TimeFormat = "2006-01-02T15:04:05"
)

Variables

This section is empty.

Functions

func Debug

func Debug(format string, v ...any)

func Error

func Error(format string, v ...any)

func Fatal

func Fatal(format string, v ...any)

func Info

func Info(format string, v ...any)

func MaskURL

func MaskURL(url string) string

func Panic

func Panic(format string, v ...any)

func SetLogLevel

func SetLogLevel(level string)

func Warn

func Warn(format string, v ...any)

Types

type LogLevel

type LogLevel int
var LogLevelSet LogLevel

Jump to

Keyboard shortcuts

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