glixir/utils
Glixir utility functions
Centralized utilities for environment detection, logging, and common helpers
Values
pub fn always_log(
level: logging.LogLevel,
message: String,
) -> Nil
Always log (for critical errors and important messages)
pub fn debug_log(level: logging.LogLevel, message: String) -> Nil
Debug logging that respects VERBOSE environment variable Only logs when VERBOSE=true, otherwise silent
pub fn debug_log_with_prefix(
level: logging.LogLevel,
module_prefix: String,
message: String,
) -> Nil
Log with module prefix for better traceability
pub fn debug_warning(message: String) -> Nil
Helper for warning-level debug logging
pub fn get_env_or(key: String, default: String) -> String
Get environment variable with fallback default
pub fn is_verbose() -> Bool
Check if verbose logging is enabled via VERBOSE environment variable