Skip to content

Commit 08f08c9

Browse files
authored
Merge pull request #361 from jdegenstein/log-format-change
Reformat Default CQ-Editor Log Output to Reduce Character Width
2 parents 0f4dc41 + 7c22e7a commit 08f08c9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cq_editor/widgets/log.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ class QtLogHandler(logging.Handler,logging.StringFormatterHandlerMixin):
2121
def __init__(self, log_widget,*args,**kwargs):
2222

2323
super(QtLogHandler,self).__init__(*args,**kwargs)
24-
logging.StringFormatterHandlerMixin.__init__(self,None)
24+
25+
log_format_string = '[{record.time:%H:%M:%S%z}] {record.level_name}: {record.message}'
26+
27+
logging.StringFormatterHandlerMixin.__init__(self,log_format_string)
2528

2629
self.log_widget = log_widget
2730

0 commit comments

Comments
 (0)