'Sets the default log level used for `logging` in the current connection.
The old default log level is returned and can be used to restore the
log level later.
See `Configuration` section for more information about global and
connection specific configuration.'

def set_default_log_level(self, level):

    self._verify_connection()
    old = self._default_log_level
    self._set_default_log_level(level)
    return old
