Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogLevel ¶
LogLevel returns the logging level for the SPIKE components.
It reads from the SPIKE_SYSTEM_LOG_LEVEL environment variable and converts it to the corresponding slog.Level value. Valid values (case-insensitive) are:
- "DEBUG": returns slog.LevelDebug
- "INFO": returns slog.LevelInfo
- "WARN": returns slog.LevelWarn
- "ERROR": returns slog.LevelError
If the environment variable is not set or contains an invalid value, it returns the default level slog.LevelWarn.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.