]> kaliko git repositories - sid.git/blobdiff - sid/plugin.py
Use namespace to init loggers
[sid.git] / sid / plugin.py
index 447e7033647ba6ffe5dc1e89f9f47488f4b1d05e..3e7c87e63714e57e4bd9775b249239dea9a8a2d3 100644 (file)
@@ -25,7 +25,7 @@ class Plugin:
 
     def __init__(self, bot):
         self.bot = bot
-        self.log = bot.log
+        self.log = bot.log.getChild(self.__class__.__name__)
 
     def send(self, dest, msg, mtype='chat'):
         """Send msg to dest