summaryrefslogtreecommitdiffstats
path: root/ipalib/plugable.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/plugable.py')
-rw-r--r--ipalib/plugable.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ipalib/plugable.py b/ipalib/plugable.py
index d65a83e2c..7dafd4401 100644
--- a/ipalib/plugable.py
+++ b/ipalib/plugable.py
@@ -253,6 +253,11 @@ class Plugin(ReadOnly):
__proxy__ = True
__api = None
+ def __init__(self):
+ log = logging.getLogger('ipa')
+ for name in ('debug', 'info', 'warning', 'error', 'critical'):
+ setattr(self, name, getattr(log, name))
+
def __get_name(self):
"""
Convenience property to return the class name.