Documentation
¶
Overview ¶
Package logger provides a logging capability for toolhive for running locally as a CLI and in Kubernetes
Package logger provides a logging capability for toolhive for running locally as a CLI and in Kubernetes
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize()
Initialize creates and configures the appropriate logger. If the UNSTRUCTURED_LOGS is set to true, it will output plain log message with only time and LogLevelType (INFO, DEBUG, ERROR, WARN)). Otherwise it will create a standard structured slog logger
Types ¶
type Logger ¶
type Logger interface { Debug(msg string, args ...any) Debugf(msg string, args ...any) Info(msg string, args ...any) Infof(msg string, args ...any) Warn(msg string, args ...any) Warnf(msg string, args ...any) Error(msg string, args ...any) Errorf(msg string, args ...any) }
Logger provides a unified interface for logging
var Log Logger
Log is a global logger instance
Click to show internal directories.
Click to hide internal directories.