summaryrefslogtreecommitdiffstats
path: root/dcae-services-policy-sync/policysync/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'dcae-services-policy-sync/policysync/util.py')
-rw-r--r--dcae-services-policy-sync/policysync/util.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/dcae-services-policy-sync/policysync/util.py b/dcae-services-policy-sync/policysync/util.py
new file mode 100644
index 0000000..1bbac5a
--- /dev/null
+++ b/dcae-services-policy-sync/policysync/util.py
@@ -0,0 +1,10 @@
+""" utility functions (currenlty just for logging) """
+import logging
+
+
+def get_module_logger(mod_name):
+ """
+ To use this, do logger = get_module_logger(__name__)
+ """
+ logger = logging.getLogger(mod_name)
+ return logger