# -*- coding: utf-8 -*- ### # Copyright (C) 2013 # Fraunhofer Institute for Open Communication Systems (FOKUS) # Competence Center NETwork research (NET), St. Augustin, GERMANY # Alton MacDonald # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . ### ### # app configuration # http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html ### [app:main] use = egg:osmo-oohmi pyramid.reload_templates = false pyramid.debug_authorization = false pyramid.debug_notfound = false pyramid.debug_routematch = false pyramid.default_locale_name = en ### # wsgi server configuration ### [server:main] use = egg:waitress#main host = 0.0.0.0 port = 8080 ### # logging configuration # http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html ### [loggers] keys = root, osmo_oohmi, exc_logger [handlers] keys = console, exc_handler, filelog [formatters] keys = generic, exc_formatter [logger_root] level = INFO handlers = console, filelog [logger_osmo_oohmi] level = WARN handlers = filelog qualname = osmo_oohmi [logger_exc_logger] #level = ERROR level = NOTSET handlers = exc_handler qualname = exc_logger [handler_console] class = StreamHandler args = (sys.stderr,) level = NOTSET formatter = generic [handler_filelog] class = FileHandler args = ('/var/log/osmo-oohmi.log','a') level = INFO formatter = generic [handler_exc_handler] class = FileHandler args = ('/var/log/osmo-oohmi.log','a') #level = ERROR level = NOTSET formatter = exc_formatter [formatter_generic] format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s [formatter_exc_formatter] format = %(asctime)s %(message)s