From 98b49cdacd53c8414df3cb8d738c53331313d241 Mon Sep 17 00:00:00 2001 From: Martin Gracik Date: Wed, 10 Nov 2010 18:19:32 +0100 Subject: [PATCH] Create a separate pylorax.log file --- src/pylorax/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py index 37861a3c..c77ed495 100644 --- a/src/pylorax/__init__.py +++ b/src/pylorax/__init__.py @@ -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)