Re: Simple logging example doesn't work!

2010-10-19 Thread Chris Torek
>On Oct 18, 10:45 pm, "robinsieb...@gmail.com" >wrote: >> If I setlogging.basicConfig() call tologging.INFO, then I see info >> messages in the logfile. I only want to see error messages in the >> logfile. I am not sure how good the documentation is (having not gone back to look at it) but I had

Re: Simple logging example doesn't work!

2010-10-18 Thread Vinay Sajip
On Oct 18, 10:45 pm, "robinsieb...@gmail.com" wrote: > If I setlogging.basicConfig() call tologging.INFO, then I see info > messages in the logfile. I only want to see error messages in the > logfile. What you need to do is, 1. Set the root logger's level to INFO. That's because you want at leas

Re: Simple logging example doesn't work!

2010-10-18 Thread robinsieb...@gmail.com
If I set logging.basicConfig() call to logging.INFO, then I see info messages in the logfile. I only want to see error messages in the logfile. -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple logging example doesn't work!

2010-10-18 Thread Kev Dwyer
On Mon, 18 Oct 2010 11:52:36 -0700, robinsieb...@gmail.com wrote: > Here is an example straight out of the help, and for some reason, it is > not working. I get the error messages in the log, but I do not get the > info messages in the console. > Hello, I don't see this code in the help; nevert

Simple logging example doesn't work!

2010-10-18 Thread robinsieb...@gmail.com
Here is an example straight out of the help, and for some reason, it is not working. I get the error messages in the log, but I do not get the info messages in the console. import datetime, logging def main(): timestamp = datetime.datetime.now().strftime("%Y%m%d-%I%M%S") #set up logging