I'm starting to develop a simple Tornado application, and I'd like to see request log in stdout while I develop. Currently I only see 404 warning messages.
Is there a way to have all requests printed in stdout?
I'm starting to develop a simple Tornado application, and I'd like to see request log in stdout while I develop. Currently I only see 404 warning messages.
Is there a way to have all requests printed in stdout?
Why don't you
print
? Useprint self.request
somewhere inside the request handler (maybe inside the prepare method).Or better:
use a base class for your request handlers and subclass it from that time on.
You can add this to you application:
By default it writes logs to stdout.
Add this to your app:
The parse_command_line function sets up logging. You can then pass
--logging=loglevel
(e.g. debug)