Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the logging level of dev_appserver

Do you know how to change the logging level of Google App Engine dev_appserver?
I would like to set it to ERROR removing messages like:

INFO     2011-10-18 17:43:00,806 dev_appserver_multiprocess.py:637] 
         Running application foo on port 8106: http://localhost:8106
INFO     2011-10-18 17:47:12,927 dev_appserver.py:4247] 
         "GET /images/sprite.png HTTP/1.1" 200 -
like image 547
systempuntoout Avatar asked Oct 18 '11 17:10

systempuntoout


1 Answers

There are two slightly different arguments which let you control the log level, log_level and dev_appserver_log_level.


log_level {debug,info,warning,critical,error}
dev_appserver.py --log_level=debug

The log level below which logging messages generated by application code will not be displayed on the console (default: info)


dev_appserver_log_level {debug,info,warning,critical,error}
dev_appserver.py --dev_appserver_log_level=debug

The log level below which logging messages generated by the development server will not be displayed on the console (default: info)

like image 139
Diederik Avatar answered Oct 22 '22 06:10

Diederik