logger

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: AGPL-3.0, AGPL-3.0-or-later Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Reset  = "\033[0m"
	Red    = "\033[31m"
	Green  = "\033[32m"
	Yellow = "\033[33m"
	Blue   = "\033[34m"
	Cyan   = "\033[36m"
	Gray   = "\033[90m"
)

Variables

This section is empty.

Functions

func Debug

func Debug(format string, args ...interface{})

Debug log en mode debug

func DebugCtx

func DebugCtx(context, format string, args ...interface{})

DebugCtx log debug avec contexte

func Error

func Error(format string, args ...interface{})

Error log une erreur

func ErrorCtx

func ErrorCtx(context, format string, args ...interface{})

ErrorCtx log error avec contexte

func Info

func Info(format string, args ...interface{})

Info log une information

func InfoCtx

func InfoCtx(context, format string, args ...interface{})

InfoCtx log info avec contexte

func Warn

func Warn(format string, args ...interface{})

Warn log un avertissement

func WarnCtx

func WarnCtx(context, format string, args ...interface{})

WarnCtx log warning avec contexte

Types

type Level

type Level string
const (
	LevelDebug Level = "DEBUG"
	LevelInfo  Level = "INFO"
	LevelWarn  Level = "WARN"
	LevelError Level = "ERROR"
)

Jump to

Keyboard shortcuts

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