Files
galaxy/lib
James Taylor 5293399bcc Allow complete logging configuration to be specified in the ini file,
in which case this is used instead of the "log_level" and "log_format"
keys under the app configuration. PasteScript actually handles this, so
we just do nothing related to logging config if the ini file contains a
"[loggers]" section. For example, you could add this to the end of your
universe_wsgi.ini to include SQLAlchemy debugging and include the thread
name with every log message.

# Logger overrides

[loggers]
keys = root, sqlalchemy.engine, sqlalchemy.orm.unitofwork, paste.httpserver.ThreadPool

[logger_root]
level = DEBUG
handlers = console

[logger_sqlalchemy.engine]
level = INFO
handlers = console
qualname = sqlalchemy.engine

[logger_sqlalchemy.orm.unitofwork]
level = DEBUG
handlers = console
qualname = sqlalchemy.orm.unitofwork

[logger_paste.httpserver.ThreadPool]
level = INFO
handlers = console
qualname = paste.httpserver.ThreadPool

[handlers]
keys = console

[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic

[formatters]
keys = generic

[formatter_generic]
format = %(threadName)s %(name)s    %(levelname)s   %(asctime)s %(message)s
2008-09-10 09:58:29 -04:00
..