Easy Python Logging

posted Sep 4, 2014, 11:58 PM by Chris G

Sometimes it is useful to log the status of the execution of a program to a logfile for auditing, or for troubleshooting. The following code will enable you to do so. The logfile will also contain a date and timestamp in the format defined in the basicConfig statement.