Add logging to CQ-Editor console
This commit is contained in:
@@ -267,6 +267,7 @@ class MainWindow(QMainWindow,MainMixin):
|
|||||||
|
|
||||||
def prepare_console(self):
|
def prepare_console(self):
|
||||||
|
|
||||||
|
from logbook import Logger
|
||||||
console = self.components['console']
|
console = self.components['console']
|
||||||
obj_tree = self.components['object_tree']
|
obj_tree = self.components['object_tree']
|
||||||
|
|
||||||
@@ -276,7 +277,8 @@ class MainWindow(QMainWindow,MainMixin):
|
|||||||
#CQ related items
|
#CQ related items
|
||||||
console.push_vars({'show' : obj_tree.addObject,
|
console.push_vars({'show' : obj_tree.addObject,
|
||||||
'show_object' : obj_tree.addObject,
|
'show_object' : obj_tree.addObject,
|
||||||
'cq' : cq})
|
'cq' : cq,
|
||||||
|
'log' : Logger(self.name).info})
|
||||||
|
|
||||||
def fill_dummy(self):
|
def fill_dummy(self):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user