Add support for logging slow/all queries (configurable by options)