Hi,

On 08/10/2014 03:52:35 PM, Ram Rachum wrote:
> I have a question. I'm using waitress on my development machine
> (instead of 
> Django runserver). What I miss from runserver is having log entries 
> in
> the 
> console for every request made. How can I have that with waitress?

Use Paste's Translogger.


  from mypackage import wsgiapp
  from waitress import serve
  from paste.translogger import TransLogger
  serve(TransLogger(wsgiapp, setup_console_handler=False))

(If you are configuring logging, remove the setup_console_handler, 
which defaults to True.)

I am, at this very moment, finalizing a patch to the waitress docs
for submission as a pull request.

Meanwhile, you can see how it's done with pyramid here:

http://docs.pylonsproject.org/projects/pyramid/en/master/narr/logging.html#request-logging-with-paste-s-translogger

(I'll let you find the url for the Paste docs.  Sorry.)

Regards,


Karl <k...@meme.com>
Free Software:  "You don't pay back, you pay forward."
                 -- Robert A. Heinlein

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-devel+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to