Ejemplo n.º 1
0
 def _log_message(self, log_event):
     self._log.append(log_event)
     if self._window:
         self._window.update_log()
     if self.log_to_console:
         print _message_to_string(log_event)
     if log_event.notify_user:
         widgets.HtmlDialog(log_event.level, log_event.message,
                            padding=10).Show()
Ejemplo n.º 2
0
 def _log_message(self, log_event):
     self._log.append(log_event)
     if self._window:
         self._window.update_log()
     if self.log_to_console:
         print _message_to_string(log_event)
     if self.log_to_file:
         self._logfile.write(_message_to_string(log_event))
     if log_event.notify_user:
         font_size = 13 if context.IS_MAC else -1
         widgets.HtmlDialog(log_event.level,
                            log_event.message,
                            padding=10,
                            font_size=font_size).Show()
Ejemplo n.º 3
0
 def _log_message(self, message):
     self._log.append(message)
     if self._panel:
         self._panel.update_log()
     if self.log_to_console:
         print('{}'.format(_message_to_string(message)))
     if self.log_to_file:
         self._logfile.write(_message_to_string(message))
         self._outfile.flush()
     if message.notify_user:
         font_size = 13 if context.IS_MAC else -1
         widgets.HtmlDialog(message.level,
                            message.message,
                            padding=10,
                            font_size=font_size).Show()
Ejemplo n.º 4
0
 def _log_message(self, log_event):
     self._log.append(log_event)
     if self._panel:
         self._panel.update_log()
     if self.log_to_console:
         print("".format(_message_to_string(
             log_event)))  # >> sys.stdout, _message_to_string(log_event)
     if self.log_to_file:
         self._logfile.write(_message_to_string(log_event))
     if log_event.notify_user:
         font_size = 13 if context.IS_MAC else -1
         widgets.HtmlDialog(log_event.level,
                            log_event.message,
                            padding=10,
                            font_size=font_size).Show()
     self.OnViewLog(log_event)