[sqlalchemy] Re: Saving all transactions against a database (logging queries?)

2007-01-09 Thread Brian Jarrett
Jose, Try it without the level=, format=, and datefmt= options in logging.basicConfig() (leaving in only filename= and filemode=) and I think it'll work. Then you can try adding in the other options one at a time and see if you can get them to work. When I only had filename and filemode

[sqlalchemy] Re: Saving all transactions against a database (logging queries?)

2007-01-05 Thread Brian Jarrett
Excellent. Thank you for the clarification. Brian On 1/5/07, Michael Bayer [EMAIL PROTECTED] wrote: i havent gotten around to adding docs for logging to the main docs...but its using Python's logging module now. turn off all the echo=True flags and go straight to logging: import logging

[sqlalchemy] Re: Saving all transactions against a database (logging queries?)

2007-01-05 Thread Brian Jarrett
Ahhh, that explains it. In my example, I had already removed the crud at the beginning of each line. For anyone else looking to do something similar, you can configure postgres.conf to log the queries it recieves and I get the following in the log file : LOG: statement: UPDATE students SET