Log Levels
Control the verbosity of your logs with Logixlysia.
Logixlysia provides multiple log levels to help you control the verbosity of your logging output.
Available Levels
DEBUG
For detailed debugging information:
INFO
For general operational information:
WARNING
For warning messages:
ERROR
For error conditions:
Level Hierarchy
Log levels follow a hierarchy from most to least verbose:
When you set a log level, all higher levels will also be logged. For example, setting the level to WARNING
will log both WARNING
and ERROR
messages.
Multiple Levels
You can specify multiple levels to log:
Environment-based Levels
Configure different levels for different environments:
Best Practices
-
Development
- Use DEBUG level for detailed debugging
- Log everything for troubleshooting
- Include stack traces
-
Staging
- Use INFO level for normal operation
- Log important events
- Monitor warnings
-
Production
- Use WARNING level for normal operation
- Log only important events
- Focus on errors and warnings
-
Monitoring
- Set up alerts for ERROR level
- Monitor WARNING trends
- Review logs regularly