You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python offers logging capability via the logging package. I understand that this package is flexible since different logging levels can be defined (INFO, DEBUG, WARNING, ERROR, CRITICAL) and the logging messages can be channeled to different outputs (stdout, file). However, the difference between raising an exception, logging and printing sometimes is not obvious. I think it needs a discussion when to use logging and when not, and possibly refactoring our code.
A first guideline when to use logging is this tutorial.
The text was updated successfully, but these errors were encountered:
Python offers logging capability via the logging package. I understand that this package is flexible since different logging levels can be defined (INFO, DEBUG, WARNING, ERROR, CRITICAL) and the logging messages can be channeled to different outputs (stdout, file). However, the difference between raising an exception, logging and printing sometimes is not obvious. I think it needs a discussion when to use logging and when not, and possibly refactoring our code.
A first guideline when to use logging is this tutorial.
The text was updated successfully, but these errors were encountered: