def METHOD_NAME(self, parameter_s=''):
    """Restart logging.
    This function is for restarting logging which you've temporarily
    stopped with %logoff. For starting logging for the first time, you
    must use the %logstart function, which allows you to specify an
    optional log filename."""
    self.shell.logger.switch_log(1)