Output debug log with GAE dev_appserver.py on Eclipse + PyDev

A memorable Qiita first post.

I'm developing GAE for Python with Eclipse + PyDev in Windows environment Note that I was a little addicted to the debug log of the development local server dev_appserver.py.

From GAE documentation

--log_level=... The lowest logging level at which logging messages will be written to the console; messages of the specified logging level or higher will be output. Possible values are debug, info, warning, error, and critical.

So, if ** --log_level debug ** is passed to the command line argument when dev_appserver.py is started, it's OK.

If you are developing mainly on PyDev, from the execution configuration of the target project It is OK if you give the argument as follows.

実行構成

It is a story that you can read the official document from the beginning, but when you first try google You can give it in the GAE Launcher settings field, or the option you give is -d (--debug). It didn't work.

I hope it helps everyone.

Recommended Posts

Output debug log with GAE dev_appserver.py on Eclipse + PyDev
Output Python log to console with GAE
Python with eclipse + PyDev.
Eclipse + Pydev + GAE development
Output log to console with Flask + Nginx on Docker
Output large log with discord.py
Unit test log output with python
Error log output method when using Bottle framework on GAE / Python
Python log is not output with docker-compose up
Django Getting Started Part 2 with eclipse Plugin (PyDev)