Re: [Tutor] Logging module

2008-05-10 Thread Dick Moores
At 02:03 PM 5/10/2008, Martin Walsh wrote: Dick Moores wrote: > But how to use the logging module to log the report of the screw up? > Right now I don't care about the various levels. I just want to get > something into a log file. > > Hellmann suggest this: > > import logging > LOG_FILENAME = '/

Re: [Tutor] Logging module

2008-05-10 Thread Martin Walsh
Dick Moores wrote: > But how to use the logging module to log the report of the screw up? > Right now I don't care about the various levels. I just want to get > something into a log file. > > Hellmann suggest this: > > import logging > LOG_FILENAME = '/tmp/logging_example.out' > logging.basicCon

[Tutor] Logging module

2008-05-10 Thread Dick Moores
I don't understand how to use this. I've read and . I thought I'd try with a script that screws up: a = "qwerty" b = a*b But how to use the logging module to log the report of the screw