Hi all, hi Ken ;)

I ran  my HelloWorld benchmark app [1] for TG 1.1 with the 1.5 branch
and apart from a few config fixes, it works well, but I couldn't get
CherryPy to stop logging access and other crud to the console.

I read the CherryPy 3 docs on logging but I'm a bit confused about what
is applicable to TG 1.5 and what not.

If I understand correctly, CherryPy has the following loggers:

- cherrypy.access
- cherrypy.error
- cherrypy.access.<appid>
- cherrypy.error.<appid>

In TurboGears 1.1 requests were logged via the special '_cp_log_access'
method of the RootController class to 'turbogears.access' with level
INFO, but with CherryPy 3 this is not supported anymore, AFAICS.

Given this, how would I

1) Log 'cherrypy.access' to a file ('access.log')
2) Log turbogears.* messages with level >= WARNING to a file
   ('error.log')
3) Log cherrypy messages (cherrypy.error) with level >= WARNING to
   stderr
4) Discard everything else?

I manage 1) and 2) but I still get request access logs to the console
and cherrypy INFO and and ENGINE messages to too.

Here's my logging config (everything in deployment config, log.cfg is
empty):

http://paste.chrisarndt.de/paste/e3ab991b685d4186bca45b402b96d838


Chris

[1] http://chrisarndt.de/projects/wf-shootout/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to turbogears-trunk@googlegroups.com
To unsubscribe from this group, send email to 
turbogears-trunk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to