def emit(self, record): if KivyLogger.isEnabledFor(record.levelno): KivyLogger.log( record.levelno, 'Moa: {}'.format(self.format(record)))
def isEnabledFor(self, lvl): if not self.name.startswith('moa'): return super(_MoaLoggerBase, self).isEnabledFor(lvl) if super(_MoaLoggerBase, self).isEnabledFor(lvl): return KivyLogger.isEnabledFor(lvl) return False