Create a separate pylorax.log file

This commit is contained in:
Martin Gracik 2010-11-10 18:19:32 +01:00
parent 23994c79d6
commit 98b49cdacd

View File

@ -25,7 +25,7 @@ import logging
fh = logging.FileHandler(filename="pylorax.log", mode="w")
fh.setLevel(logging.DEBUG)
logging.getLogger("").addHandler(fh)
logging.getLogger("pylorax").addHandler(fh)
sh = logging.StreamHandler()
sh.setLevel(logging.INFO)