Esempio n. 1
0
 def onBox(self):
     level_selected = self.box_level.currentText()
     cp.log_level.setValue(level_selected)
     logger.info(
         'onBox - selected ' + self.tit_level.text() + ' ' +
         cp.log_level.value(), self.name)
     logger.setLevel(cp.log_level.value())
     self.box_txt.setText(logger.getLogContent())
Esempio n. 2
0
    def startGUILog(self) :
        self.fname_log       = fnm.log_file()
        self.fname_log_total = fnm.log_file_total()
        self.setStatus(0, 'Log-file: ' + os.path.basename(self.fname_log))

        logger.setLevel(cp.log_level.value())
        self.box_txt.setText( logger.getLogContent() )
        logger.setGUILogger(self)
        logger.debug('GUILogger is open', __name__)
Esempio n. 3
0
    def startGUILog(self) :
        self.fname_log       = cp.log_file.value()
        #self.fname_log_total = cp.log_file_total.value()
        self.setStatus(0, 'Log-file: ' + os.path.basename(self.fname_log))

        logger.setLevel(cp.log_level.value())
        self.box_txt.setText(logger.getLogContent())
        
        logger.setGUILogger(self)
        logger.debug('GUILogger is open', self.name)
        self.box_txt.moveCursor(QtGui.QTextCursor.End)
Esempio n. 4
0
    def startGUILog(self):
        self.fname_log = cp.log_file.value()
        #self.fname_log_total = cp.log_file_total.value()
        self.setStatus(0, 'Log-file: ' + os.path.basename(self.fname_log))

        logger.setLevel(cp.log_level.value())
        self.box_txt.setText(logger.getLogContent())

        logger.setGUILogger(self)
        logger.debug('GUILogger is open', self.name)
        self.box_txt.moveCursor(QtGui.QTextCursor.End)
Esempio n. 5
0
 def onBox(self):
     level_selected = self.box_level.currentText()
     cp.log_level.setValue( level_selected ) 
     logger.info('onBox - selected ' + self.tit_level.text() + ' ' + cp.log_level.value(), self.name)
     logger.setLevel(cp.log_level.value())
     self.box_txt.setText( logger.getLogContent() )