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?
You can add this to you application:
from tornado.log import enable_pretty_logging
enable_pretty_logging()
By default it writes logs to stdout.
Add this to your app:
import tornado.options
tornado.options.parse_command_line()
The parse_command_line function sets up logging. You can then pass --logging=loglevel
(e.g. debug)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With