]> git.llucax.com Git - software/pymin.git/commitdiff
Add example configuration files for initialization logging (refs #7).
authorLeandro Lucarella <llucax@gmail.com>
Thu, 19 Jun 2008 03:29:25 +0000 (00:29 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Thu, 19 Jun 2008 03:33:28 +0000 (00:33 -0300)
Includes both development and production examples.

doc/config-examples/log.init.devel.ini [new file with mode: 0644]
doc/config-examples/log.init.prod.ini [new file with mode: 0644]

diff --git a/doc/config-examples/log.init.devel.ini b/doc/config-examples/log.init.devel.ini
new file mode 100644 (file)
index 0000000..51232c8
--- /dev/null
@@ -0,0 +1,23 @@
+
+[loggers]
+keys = root
+
+[handlers]
+keys = stdout
+
+[formatters]
+keys = stdout
+
+[logger_root]
+level = DEBUG
+handlers = stdout
+
+[handler_stdout]
+class = StreamHandler
+formatter = stdout
+args = (sys.stdout,)
+
+[formatter_stdout]
+format = %(levelname)s: %(message)s
+
+; vim: set encoding=utf-8 :
diff --git a/doc/config-examples/log.init.prod.ini b/doc/config-examples/log.init.prod.ini
new file mode 100644 (file)
index 0000000..5150817
--- /dev/null
@@ -0,0 +1,23 @@
+
+[loggers]
+keys = root
+
+[handlers]
+keys = stderr
+
+[formatters]
+keys = stderr
+
+[logger_root]
+level = INFO
+handlers = stderr
+
+[handler_stderr]
+class = StreamHandler
+formatter = stderr
+args = (sys.stderr,)
+
+[formatter_stderr]
+format = %(levelname)s: %(message)s
+
+; vim: set encoding=utf-8 :