T K Sourab
17th March, 2018
(Unless it's a college project or written in perl)
Python logging module
DEBUG Detailed information, of no interest when everything is working well but invaluable when diagnosing problems.
INFO Affirmations that things are working as expected, e.g. "service has started" or "indexing run complete". Often ignored.
WARNING There may be a problem in the near future, and this gives advance warning of it. But the application is able to proceed normally.
ERROR The application has been unable to proceed as expected, due to the problem being logged
CRITICAL This is a serious error, and some kind of application meltdown might be imminent.