Skip to content

Instantly share code, notes, and snippets.

@mdfranz
Created July 25, 2015 16:37
Show Gist options
  • Save mdfranz/973013130d3630aadcb7 to your computer and use it in GitHub Desktop.
Save mdfranz/973013130d3630aadcb7 to your computer and use it in GitHub Desktop.
Most Simple Way to Turn on Python ElasticSearch logging
tracer = logging.getLogger('elasticsearch.trace')
tracer.setLevel(logging.DEBUG)
tracer.addHandler(logging.FileHandler('/tmp/es-client.log'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment