I'm seriously considering a significant change to how Sequel logs SQL, allowing the following capabilities:
* Log queries that raise exceptions at error level * Log durations for all queries * Log queries that take longer than a given duration at warn instead of the default info level. Because of the usage of different logging levels, it will be easy to only log queries that raise errors, or only log queries that raise errors and queries that take a long time (for a user-defined long time). The code for this is in the log branch on github (http://github.com/ jeremyevans/sequel/commits/log). I don't often publish my WIP branches (often I'll just post links to patches here), but I decided to in this case to make it easier for other people to test, and hopefully get some of you to help me convert some adapters. I've already converted the PostgreSQL and SQLite adapters, but the other adapters have not been converted yet. I will be doing MySQL, JDBC, DO, ODBC, Amalgalite, and ADO myself, since I can test those. The other adapters (DB2, DBI, Firebird, Informix, OpenBase, and Oracle), I would like the community to submit patches for. If you can test the adapter, please try converting it and if you are successful, send me a patch/pull request. Note that the old API is still available, so adapters that are not converted will still work, but you won't get the new logging capabilities. Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" 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/sequel-talk?hl=en.
