示例#1
0
    def _isEnabledFor(self, level):
        '''Internal function to check for an integer log level.

            * level: integer log level
        '''

        if self.parent and not self.parent._isEnabledFor(level):
            return False
        return FreeCAD.getLogLevel(self.tag) >= level
示例#2
0
 def _isEnabledFor(self,level):
     if self.parent and not self.parent._isEnabledFor(level):
         return False
     return FreeCAD.getLogLevel(self.tag) >= level