Changed log folder layout
This commit is contained in:
parent
f1ea6d8666
commit
7b13883e95
1 changed files with 2 additions and 6 deletions
|
@ -1,7 +1,3 @@
|
||||||
"""
|
|
||||||
log.py: written by Scaevolus 2009
|
|
||||||
"""
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import codecs
|
import codecs
|
||||||
import time
|
import time
|
||||||
|
@ -31,8 +27,8 @@ irc_color_re = re.compile(r'(\x03(\d+,\d+|\d)|[\x0f\x02\x16\x1f])')
|
||||||
|
|
||||||
|
|
||||||
def get_log_filename(dir, server, chan):
|
def get_log_filename(dir, server, chan):
|
||||||
return os.path.join(dir, 'log', gmtime('%Y'), server,
|
return os.path.join(dir, 'log', gmtime('%Y'), server, chan,
|
||||||
(gmtime('%%s.%m-%d.log') % chan).lower())
|
(gmtime('%m-%d.log')).lower())
|
||||||
|
|
||||||
|
|
||||||
def gmtime(format):
|
def gmtime(format):
|
||||||
|
|
Reference in a new issue