Create a separate pylorax.log file
This commit is contained in:
parent
23994c79d6
commit
98b49cdacd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user