title: Error logs in debian using python
body: <p>I have one of my application (using python script) running on autostart using cron (debian based raspberry pi). I am writing logs to a file using the python logging module, based on the events occurring in the application. Now, I want to be able to see the logs for any errors in the program while it is running. For example, if one of my USB devices get damaged, then it will give an error that USB device not found, when the application starts up. Is there any way to see these errors in any of the inbuilt log files on the pi ? Or should we write error logs in the code. If so, how do I write logs to detect errors ?</p>