summaryrefslogtreecommitdiffstats
path: root/storage/storage_log.py
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2009-02-23 11:45:41 -0600
committerDavid Lehman <dlehman@redhat.com>2009-02-23 11:45:41 -0600
commite95be86ccde6c4997fd87729cc655c9072f865fd (patch)
tree2e2fb489d9f6676e68d46e35a5af8a63f44871d1 /storage/storage_log.py
parent4a42365ba80dcf83d23a2c54d3bf7a31eb8950ca (diff)
downloadanaconda-e95be86ccde6c4997fd87729cc655c9072f865fd.tar.gz
anaconda-e95be86ccde6c4997fd87729cc655c9072f865fd.tar.xz
anaconda-e95be86ccde6c4997fd87729cc655c9072f865fd.zip
Replace old storage modules.
Diffstat (limited to 'storage/storage_log.py')
-rw-r--r--storage/storage_log.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/storage/storage_log.py b/storage/storage_log.py
new file mode 100644
index 000000000..351df9811
--- /dev/null
+++ b/storage/storage_log.py
@@ -0,0 +1,13 @@
+import logging
+
+
+#handler = logging.StreamHandler()
+handler = logging.FileHandler("/tmp/storage.log")
+formatter = logging.Formatter("[%(asctime)s] %(levelname)8s: %(message)s")
+handler.setFormatter(formatter)
+
+logger = logging.getLogger("storage")
+logger.addHandler(handler)
+logger.setLevel(logging.DEBUG)
+
+