In my SQLAlchemy app, I want to generate a dedicated, low-level log output that will capture sql queries and parameters in a custom- defined format, as well as separate elapsed times for execute and fetch, and number of rows fetched. In addition I'd like identifiers for the session / connection to appear in the log, so it is possible to process the log file and identify all the query activity associated with a given user activity or even physical db session/connection.
Can anyone the best starting point to make this kind of extension? I'm fairly new to the library. I'm hoping to find a way that doesn't break encapsulation, or adding custom behavior in a lot of places. Thanks! Jim -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.