Commit 64916085 authored by olivier R-D's avatar olivier R-D

allow to enable logging for all subscriptions at once

parent b446001d
......@@ -18,7 +18,7 @@ class UASocketClient(object):
timeout is the timeout used while waiting for an ua answer from server
"""
def __init__(self, timeout=1, security_policy=ua.SecurityPolicy()):
self.logger = logging.getLogger(__name__ + "Socket")
self.logger = logging.getLogger(__name__ + ".Socket")
self._thread = None
self._lock = Lock()
self.timeout = timeout
......
......@@ -26,7 +26,7 @@ class MonitoredItemService(object):
"""
def __init__(self, isub, aspace):
self.logger = logging.getLogger(__name__ + str(isub.data.SubscriptionId))
self.logger = logging.getLogger(__name__ + "." + str(isub.data.SubscriptionId))
self.isub = isub
self.aspace = aspace
self._lock = RLock()
......@@ -193,7 +193,7 @@ class MonitoredItemService(object):
class InternalSubscription(object):
def __init__(self, subservice, data, addressspace, callback):
self.logger = logging.getLogger(__name__ + str(data.SubscriptionId))
self.logger = logging.getLogger(__name__ + "." + str(data.SubscriptionId))
self.aspace = addressspace
self.subservice = subservice
self.data = data
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment