Ticket #1630: logging_problem.patch
| File logging_problem.patch, 1.8 kB (added by chrisz, 2 years ago) |
|---|
-
turbogears/qstemplates/quickstart/dev.cfg_tmpl
old new 1 1 [global] 2 2 # This is where all of your settings go for your development environment 3 3 # Settings that are the same for both development and production 4 # (such as template engine, encodings, etc.) all go in 4 # (such as template engine, encodings, etc.) all go in 5 5 # ${package}/config/app.cfg 6 6 7 7 # DATABASE … … 79 79 handlers=['access_out'] 80 80 propagate=0 81 81 82 #if $identity != 'none' 83 [[[identity]]] 84 level='INFO' 85 qualname='turbogears.identity' 86 handlers=['access_out'] 87 propagate=0 88 #end if 89 82 90 #if $sqlalchemy == "True" 83 91 [[[database]]] 84 92 # Set to INFO to make SQLAlchemy display SQL commands -
turbogears/qstemplates/quickstart/test.cfg_tmpl
old new 1 [global] 1 2 # You can place test-specific configuration options here (like test db uri, etc) 2 3 # 3 4 5 # DATABASE 6 4 7 #if $sqlalchemy != "True" 5 8 sqlobject.dburi = "sqlite:///:memory:" 6 9 #else 7 10 sqlalchemy.dburi = "sqlite:///:memory:" 8 11 #end if 9 12 13 # LOGGING 14 15 [logging] 16 17 [[formatters]] 18 [[[full_content]]] 19 format='*(asctime)s *(name)s *(levelname)s *(message)s' 20 21 [[handlers]] 22 [[[test_out]]] 23 class='StreamHandler' 24 level='DEBUG' 25 args='(sys.stdout,)' 26 formatter='full_content' 27 28 [[loggers]] 29 [[[${package}]]] 30 level='DEBUG' 31 qualname='${package}' 32 handlers=['test_out'] 33 34 [[[turbogears]]] 35 level='INFO' 36 qualname='turbogears' 37 handlers=['test_out']