Create a default logging config

paste uses paste.ini to configure python's logging module.

Until now, there was NO config, not even a useful default
one. This means: any messages went away unseen.
Not good.

The new default logs everything to stderr at level INFO and
higher. Maybe not the best, but a good starting point.
This commit is contained in:
Elrond 2012-01-09 14:22:28 +01:00
parent f42e49c3ad
commit 7cbbf3e75b

View File

@ -19,6 +19,28 @@ use = egg:mediagoblin#app
filter-with = beaker filter-with = beaker
config = %(here)s/mediagoblin_local.ini %(here)s/mediagoblin.ini config = %(here)s/mediagoblin_local.ini %(here)s/mediagoblin.ini
[loggers]
keys = root
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = INFO
handlers = console
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(asctime)s %(levelname)-7.7s [%(name)s] %(message)s
[app:publicstore_serve] [app:publicstore_serve]
use = egg:Paste#static use = egg:Paste#static
document_root = %(here)s/user_dev/media/public/ document_root = %(here)s/user_dev/media/public/