Let's segregate our ChannelLogger logfiles.

This commit is contained in:
Jeremy Fincher 2004-07-24 05:46:35 +00:00
parent d0e5d72d00
commit d0552fdcf2
1 changed files with 3 additions and 0 deletions

View File

@ -151,6 +151,9 @@ class ChannelLogger(callbacks.Privmsg):
else:
try:
logDir = conf.supybot.directories.log()
logDir = os.path.join(logDir, self.name())
if not os.path.exists(logDir):
os.makedirs(logDir)
name = self.getLogName(channel)
log = file(os.path.join(logDir, name), 'a')
self.logs[channel] = log