How can I fix default log formatting from Google App Engine?
Every my line is added not need new line - it makes log double less readable - since I see half of lines. It occur when I am using standard logging
module without any customization.
import logging logging.debug('Something') logging.debug('Something') logging.debug('Something')
DEBUG 2016-04-16 09:29:24,338 filtered_keyword_idea_root_cause.py:26] Type has 28379 objects. DEBUG 2016-04-16 09:29:24,338 filtered_keyword_idea_root_cause.py:26] Type has 13113 objects. DEBUG 2016-04-16 09:29:24,338 filtered_keyword_idea_root_cause.py:26] Type has 12948 objects. DEBUG 2016-04-16 09:29:24,338 filtered_keyword_idea_root_cause.py:26] Type has 5982 objects
When Google App engine log internal things there is not problem - what adds such irritating new lines?
DEBUG 2016-04-16 11:29:22,711 api_server.py:277] Handled datastore_v3.RunQuery in 0.0080 DEBUG 2016-04-16 11:29:22,720 api_server.py:277] Handled memcache.Get in 0.0010 DEBUG 2016-04-16 11:29:22,726 api_server.py:277] Handled memcache.Get in 0.0000 DEBUG 2016-04-16 11:29:22,746 api_server.py:277] Handled memcache.Get in 0.0010 DEBUG 2016-04-16 11:29:22,750 api_server.py:277] Handled memcache.Get in 0.0010
I want to achieve format like this above.