mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
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