mirror of
https://github.com/jdegenstein/jmwright-CQ-Editor.git
synced 2025-12-21 06:54:26 +01:00
Reformat log output
This commit is contained in:
@@ -10,8 +10,10 @@ class QtLogHandler(logging.Handler,logging.StringFormatterHandlerMixin):
|
|||||||
def __init__(self, log_widget,*args,**kwargs):
|
def __init__(self, log_widget,*args,**kwargs):
|
||||||
|
|
||||||
super(QtLogHandler,self).__init__(*args,**kwargs)
|
super(QtLogHandler,self).__init__(*args,**kwargs)
|
||||||
logging.StringFormatterHandlerMixin.__init__(self,None)
|
|
||||||
|
|
||||||
|
log_format_string = '[{record.time:%H:%M:%S.%f%z}] {record.level_name}: {record.message}'
|
||||||
|
|
||||||
|
logging.StringFormatterHandlerMixin.__init__(self,log_format_string)
|
||||||
self.log_widget = log_widget
|
self.log_widget = log_widget
|
||||||
|
|
||||||
def emit(self, record):
|
def emit(self, record):
|
||||||
|
|||||||
Reference in New Issue
Block a user