StaticdebugLogs a debug message to stdout, ONLY if the DEBUG environment variable is set.
Use this for internal developer details useful for troubleshooting logic
(e.g., "Parsed IR model state:", object dumps).
Color: Gray tag [DEBUG]
The debug note.
Raw objects or arrays for deep inspection.
StaticerrorLogs an error message to stderr. Use this for critical failures that prevent an operation from completing (e.g., "Failed to parse schema", "Network timeout").
Color: Red tag [ERROR]
The error message.
Error objects, stack traces, or detailed failure info.
StaticinfoLogs a general informational message to stdout. Use this for standard feedback to the user (e.g., "File created successfully").
Color: Cyan tag [INFO]
The main message to log.
Additional arguments, objects, or arrays to inspect.
StaticwarnLogs a warning message to stderr. Use this for non-critical issues or potential problems that do not halt execution (e.g., "Configuration file missing, using defaults").
Color: Yellow tag [WARN]
The warning message.
Additional context or data.
Global Logger utility for the CLI. Wraps standard console methods to provide consistent, color-coded formatting and log levels.
It handles output streams correctly:
stdout: for INFO and DEBUG messages.stderr: for WARN and ERROR messages.