Selecting logging levels for messages has always bugged me.
Although I do try to make sensible decisions there isn’t any true standard I conform to.
Are there any standards?
What strategy do you employ when deciding upon logging levels in your web-application?
The logging library that I use has the following levels:
- debug
- info
- warning
- error
- critical
- alert
Thanks in advance!
Usage of log levels are quite different and not carved in stone. In my company we mainly use
Log4jwith the levelsfatal,error,warn,infoanddebug. Our guidelines are:You can adopt these error levels to almost any logging libraries. For example you could use my description of FATAL for your CRITICAL level.