Le repo des sources pour le site web des JM2L
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 

63 linhas
1.2 KiB

  1. ###
  2. # app configuration
  3. # http://docs.pylonsproject.org/projects/pyramid/en/1.5-branch/narr/environment.html
  4. ###
  5. [app:main]
  6. use = egg:JM2L
  7. pyramid.reload_templates = false
  8. pyramid.debug_authorization = false
  9. pyramid.debug_notfound = false
  10. pyramid.debug_routematch = false
  11. pyramid.default_locale_name = en
  12. pyramid.includes =
  13. pyramid_tm
  14. sqlalchemy.url = sqlite:///%(here)s/JM2L.sqlite
  15. [server:main]
  16. use = egg:waitress#main
  17. host = 0.0.0.0
  18. port = 6543
  19. ###
  20. # logging configuration
  21. # http://docs.pylonsproject.org/projects/pyramid/en/1.5-branch/narr/logging.html
  22. ###
  23. [loggers]
  24. keys = root, jm2l, sqlalchemy
  25. [handlers]
  26. keys = console
  27. [formatters]
  28. keys = generic
  29. [logger_root]
  30. level = WARN
  31. handlers = console
  32. [logger_jm2l]
  33. level = WARN
  34. handlers =
  35. qualname = jm2l
  36. [logger_sqlalchemy]
  37. level = WARN
  38. handlers =
  39. qualname = sqlalchemy.engine
  40. # "level = INFO" logs SQL queries.
  41. # "level = DEBUG" logs SQL queries and results.
  42. # "level = WARN" logs neither. (Recommended for production systems.)
  43. [handler_console]
  44. class = StreamHandler
  45. args = (sys.stderr,)
  46. level = NOTSET
  47. formatter = generic
  48. [formatter_generic]
  49. format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s