Logo Search packages:      
Sourcecode: ufw version File versions

def src::frontend::UFWFrontend::set_loglevel (   self,
  level 
)

Sets log level of firewall

Definition at line 323 of file frontend.py.

00323                                  :
        '''Sets log level of firewall'''
        res = ""
        try:
            res = self.backend.set_loglevel(level)
            if self.backend._is_enabled():
                # have to just restart because of ordering of LOG rules
                self.backend.stop_firewall()
                self.backend.start_firewall()
        except UFWError, e:
            error(e.value)

        return res

    def get_status(self):


Generated by  Doxygen 1.6.0   Back to index