summaryrefslogtreecommitdiffstats
path: root/module/plugins/Hook.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-02 13:00:20 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-02 13:00:20 +0200
commit9415f17b63a1167c5f933e2ef7784d1aa4cf3e30 (patch)
tree4ccfefac0cea6622381f0abddf62bc94557552ea /module/plugins/Hook.py
parentwupload plugin (free) (diff)
downloadpyload-9415f17b63a1167c5f933e2ef7784d1aa4cf3e30.tar.xz
wupload premium (untested), new log functions for plugins, decode kwarg for requests
Diffstat (limited to 'module/plugins/Hook.py')
-rw-r--r--module/plugins/Hook.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/module/plugins/Hook.py b/module/plugins/Hook.py
index c9d9c8778..5c8a3384f 100644
--- a/module/plugins/Hook.py
+++ b/module/plugins/Hook.py
@@ -76,7 +76,18 @@ class Hook():
def setConfig(self, option, value):
""" sets config value """
self.config.setPlugin(self.__name__, option, value)
-
+
+ #log functions
+ def logInfo(self, msg):
+ self.log.info("%s: %s" % (self.__name__, msg))
+ def logWarning(self, msg):
+ self.log.warning("%s: %s" % (self.__name__, msg))
+ def logError(self, msg):
+ self.log.error("%s: %s" % (self.__name__, msg))
+ def logDebug(self, msg):
+ self.log.debug("%s: %s" % (self.__name__, msg))
+
+ #event methods - overwrite these if needed
def coreReady(self):
pass