I would suggest setting the level to DEBUG, that should trigger the logging you're seeking. Also specify the full path for the log file name.
On Wed, May 12, 2010 at 5:46 PM, steve <[email protected]> wrote: > hi, > > i am trying to log the sql statements that happens during my tests. i > followed the directions in various tutorials, but it's not working, > perhaps i m missing a step? > > first, i copy all the logging configs from the development.ini into > the test.ini. then in test.ini, i add the following section: > > [handler_sql] > class = FileHandler > args = ("sql.log") > formatter = generic > > > and in the following sections, i add the reference to the handler: > > [handlers] > keys = console, sql > > [logger_sqlalchemy] > level = INFO > handlers = sql > qualname = sqlalchemy.engine > > > however, when u run nosetest, nothing noticeably different happens, > and sql.log is no where to be found. any ideas? > > thanks very much, > steve > > -- > You received this message because you are subscribed to the Google Groups > "TurboGears" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<turbogears%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/turbogears?hl=en. > > -- Michael J. Pedersen My IM IDs: Jabber/[email protected], ICQ/103345809, AIM/pedermj022171 Yahoo/pedermj2002, MSN/[email protected] -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

