[sqlalchemy] Re: Logger problem

2008-07-22 Thread Michael Bayer



On Jul 22, 10:22 am, Alen Ribic [EMAIL PROTECTED] wrote:

 To get my cgi app to work, I can either:
 1.) set Echo = False or
 2.) I comment out the handler lines in log.py above and from there
 my own logger directs the SA log to my app's log file.

 Both of the above ways do the trick.

 Anyone with any idea how to do this in a more cleaner way?
 If not, should this perhaps be suggested as change to current SA
 source?


dont use echo at all, configure logging through Python logging.
echo corresponds to sqlalchemy.engine/INFO.
http://www.sqlalchemy.org/docs/05/dbengine.html#dbengine_logging
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
sqlalchemy group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~--~~~~--~~--~--~---



[sqlalchemy] Re: Logger problem

2008-07-22 Thread Alen Ribic


 dont use echo at all, configure logging through Python logging.
 echo corresponds to sqlalchemy.engine/INFO.
 http://www.sqlalchemy.org/docs/05/dbengine.html#dbengine_logging

Thanks for the ref Michael.
That will work perfectly.

-Al

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
sqlalchemy group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~--~~~~--~~--~--~---