Enable log for SQL statements.