wrmacdonald / gift-app

1 stars 0 forks source link

added and configured logger and some log messages #13

Closed mgnielsen1 closed 2 years ago

mgnielsen1 commented 2 years ago

logging message & time that event occurred to the console.

To change level of logging update level input of logging.basicConfig() right before main() is called in app.py to any of the levels:

DEBUG: Detailed information, typically of interest only when diagnosing problems.

INFO:  Confirmation that things are working as expected.

WARNING: An indication that something unexpected happened, or indicative of some problem in the near future (e.g. ‘disk space low’). The software is still working as expected.

ERROR: Due to a more serious problem, the software has not been able to perform some function.

CRITICAL: A serious error, indicating that the program itself may be unable to continue running.