How do I set Ruby Sequel logging to the DEBUG level? How do I set Ruby Sequel logging to the DEBUG level? ruby ruby

How do I set Ruby Sequel logging to the DEBUG level?


Previously, it was fairly simple to do with a proxy logger object, but enough people have asked for this that I implemented it. With the git master branch of Sequel, you can now do:

DB.sql_log_level = :debug

Which will use the debug method instead of the info method when logging queries.