Files
pve_local_exporter/src/internal/logging/logging.go
2026-03-12 19:39:35 +05:30

15 lines
345 B
Go

package logging
import (
"context"
"log/slog"
)
// LevelTrace is a custom log level below Debug for very detailed diagnostic output.
const LevelTrace = slog.Level(-8)
// Trace logs a message at TRACE level using the default logger.
func Trace(msg string, args ...any) {
slog.Default().Log(context.Background(), LevelTrace, msg, args...)
}