opc_ua/client.py
changeset 3378 e655ec8162e1
parent 3366 1ca385429bba
child 3589 a0b645a934c9
--- a/opc_ua/client.py	Fri Oct 29 18:00:54 2021 +0200
+++ b/opc_ua/client.py	Fri Oct 29 18:07:28 2021 +0200
@@ -49,12 +49,15 @@
     EditorType = OPCUAClientEditor
 
     def __init__(self):
-        self.modeldata = OPCUAClientModel()
+        self.modeldata = OPCUAClientModel(self.Log)
 
         filepath = self.GetFileName()
         if os.path.isfile(filepath):
             self.modeldata.LoadCSV(filepath)
 
+    def Log(self, msg):
+        self.GetCTRoot().logger.write(msg)
+
     def GetModelData(self):
         return self.modeldata