Hello tutors,

I have become familiar with the basic use of the logging module. I have a 
program that prints out warning messages as well as info messages as it runs, 
merely dumping them into stdout. When I make such a script into a cron job, I 
simply redirect this output to /dev/null.

Now, what I would like to do is instead send this output to one or more of the 
standard linux log files. First though, I am wondering, what is the standard 
procedure in a case like this? Is it more appropriate to make a totally 
separate log file for all user-added scripts (or one a piece), and put them in 
/var/log or elsewhere? Where have you all found to be helpful places to log 
messages from automated scripts on Linux systems? The end goal is simply to 
have a place that I can check to see that the script is running as expected, or 
troubleshoot issues if need arise.

Thanks for any help or tips,
Sam


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to