mirror of
https://github.com/jdegenstein/jmwright-CQ-Editor.git
synced 2025-12-19 22:24:19 +01:00
Add logging to CQ-Editor console
This commit is contained in:
@@ -267,6 +267,7 @@ class MainWindow(QMainWindow,MainMixin):
|
||||
|
||||
def prepare_console(self):
|
||||
|
||||
from logbook import Logger
|
||||
console = self.components['console']
|
||||
obj_tree = self.components['object_tree']
|
||||
|
||||
@@ -276,7 +277,8 @@ class MainWindow(QMainWindow,MainMixin):
|
||||
#CQ related items
|
||||
console.push_vars({'show' : obj_tree.addObject,
|
||||
'show_object' : obj_tree.addObject,
|
||||
'cq' : cq})
|
||||
'cq' : cq,
|
||||
'log' : Logger(self.name).info})
|
||||
|
||||
def fill_dummy(self):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user