Folks,

I have a TG1.0 app that was built around a quick-started
app. I can get log.debug() calls to send the msgs to the
console when server.log_to_screen = True. But when I
turn it off (server.log_to_screen = False) and specify
server.log_file="/tmp/myapp.log", I dont see anything
wrtten to my logs (and of course nothing on the console
either).

Apart from many attempts at using documented info,
have had no luck. Also tried to follow the tips in:
http://groups.google.com/group/turbogears/browse_thread/thread/22a00b086714d34a/d7f46abf11fb813f?lnk=gst&q=no+log&rnum=2#d7f46abf11fb813f
but to no avail.

Can anyone point me to log.cfg/prod-cfg settings (of
a quick-started app) that they could get working ...
Any help is appreciated.
TIA,
/venkat

My settings:

1) log.cfg:
---------

[logging]

[[formatters]]

[[[message_only]]]
format='*(message)s'

[[[full_content]]]
format='*(asctime)s *(name)s *(levelname)s *(message)s'

# got rid of entries for all handlers

2) prod.cfg:
---------

[logging]

[[handlers]]

[[[allinfo]]]
args="('/tmp/myapp.log',)"
class='FileHandler'
formatter='full_content'

[[[access_out]]]
args="('/tmp/myapp-access.log',)"
class='FileHandler'
formatter='message_only'

[[loggers]]

[[[myapp]]]
level='DEBUG'
qualname='myapp'
handlers=['allinfo']

[[[access]]]
level='INFO'
qualname='turbogears.access'
handlers=['access_out']
propagate=0


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to