RunLevel
: int
in package
Logging run level enumeration for message prioritization and filtering.
This enum defines the standard logging levels used throughout the Neuron logging system for message classification, filtering, and prioritization. Each level has a numeric value that allows for easy comparison and hierarchical filtering, where higher values represent more critical messages.
Logging level hierarchy (lowest to highest priority):
- DEBUG (0): Detailed diagnostic information for development and troubleshooting
- INFO (10): General informational messages about application flow
- NOTICE (15): Normal but significant events
- WARNING (20): Warning messages about potentially harmful situations
- ERROR (30): Error events that allow the application to continue running
- CRITICAL (40): Critical conditions that need attention
- ALERT (45): Action must be taken immediately
- EMERGENCY (50): System is unusable
Key features:
- Numeric values allow easy level comparison and filtering
- String representation for human-readable output
- Integration with log destinations and filters
- Support for minimum level filtering
- Consistent severity classification across all loggers
Tags
Table of Contents
Cases
Methods
- getLevel() : string
Cases
DEBUG
INFO
NOTICE
WARNING
ERROR
CRITICAL
ALERT
EMERGENCY
Methods
getLevel()
public
getLevel() : string