Ticket #1630: logging_problem.patch

File logging_problem.patch, 1.8 kB (added by chrisz, 2 years ago)

Patch against 1.0 branch

  • turbogears/qstemplates/quickstart/dev.cfg_tmpl

    old new  
    11[global] 
    22# This is where all of your settings go for your development environment 
    33# 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 
    55# ${package}/config/app.cfg 
    66 
    77# DATABASE 
     
    7979handlers=['access_out'] 
    8080propagate=0 
    8181 
     82#if $identity != 'none' 
     83[[[identity]]] 
     84level='INFO' 
     85qualname='turbogears.identity' 
     86handlers=['access_out'] 
     87propagate=0 
     88#end if 
     89 
    8290#if $sqlalchemy == "True" 
    8391[[[database]]] 
    8492# Set to INFO to make SQLAlchemy display SQL commands 
  • turbogears/qstemplates/quickstart/test.cfg_tmpl

    old new  
     1[global] 
    12# You can place test-specific configuration options here (like test db uri, etc) 
    23# 
    34 
     5# DATABASE 
     6 
    47#if $sqlalchemy != "True" 
    58sqlobject.dburi = "sqlite:///:memory:" 
    69#else 
    710sqlalchemy.dburi = "sqlite:///:memory:" 
    811#end if 
    912 
     13# LOGGING 
     14 
     15[logging] 
     16 
     17[[formatters]] 
     18[[[full_content]]] 
     19format='*(asctime)s *(name)s *(levelname)s *(message)s' 
     20 
     21[[handlers]] 
     22[[[test_out]]] 
     23class='StreamHandler' 
     24level='DEBUG' 
     25args='(sys.stdout,)' 
     26formatter='full_content' 
     27 
     28[[loggers]] 
     29[[[${package}]]] 
     30level='DEBUG' 
     31qualname='${package}' 
     32handlers=['test_out'] 
     33 
     34[[[turbogears]]] 
     35level='INFO' 
     36qualname='turbogears' 
     37handlers=['test_out']