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].
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en.