What I did to produce a prod.cfg file was 'combine' dev.cfg and sample-
prod.cfg file on a quickstarted project.
this came from sample-prod.cfg , changed level from INFO to DEBUG, and
added this to the copy of dev.cfg
[[[access_out]]]
# set the filename as the first argument below
args="('server.log',)"
class='FileHandler'
level='DEBUG'
formatter='message_only'
Then you can just play around with the loggers (access_out,
debug_out) , etc.
Below is a grep of with '#' comments removed.
[global]
sqlalchemy.dburi="sqlite:///devdata.sqlite"
sqlalchemy.echo = 0
server.socket_port=8080
server.environment="production"
server.webpath="/proj"
tg.strict_parameters = True
[logging]
[[handlers]]
[[[access_out]]]
args="('server.log',)"
class='FileHandler'
level='DEBUG'
formatter='full_content'
[[loggers]]
[[[proj]]]
level='DEBUG'
qualname='proj'
handlers=['debug_out','access_out']
[[[allinfo]]]
level='INFO'
handlers=['access_out']
[[[access]]]
level='INFO'
qualname='turbogears.access'
handlers=['debug_out', 'access_out']
propagate=0
hope this helps,
Dax
On Jan 27, 12:40 pm, James <[EMAIL PROTECTED]> wrote:
> Hi, I've recently changed my TurboGears application to use
> 'production' settings, and somewhere in my logger configuration I've
> managed to disable all stacktraces - both on served pages and in my
> logs
>
> Can someone guide me to the appropriate configuration to hide stack
> trace in served pages but enable them in logs?
>
> Thanks,
> James
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---