Skip to content

Instantly share code, notes, and snippets.

@dmsimard
Created June 22, 2018 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmsimard/aa81ba7d189c2c576641e1ac2e5cc6a3 to your computer and use it in GitHub Desktop.
Save dmsimard/aa81ba7d189c2c576641e1ac2e5cc6a3 to your computer and use it in GitHub Desktop.
logging-config
# pip install logging_tree
from logging_tree import printout
printout()
<--""
Level DEBUG
Handler File u'/tmp/venv/ansible.log'
Filter <ansible.utils.display.FilterBlackList object at 0x274e390>
Formatter fmt='%(asctime)s %(name)s %(message)s' datefmt=None
|
o<--"p=4367 u=root | "
Level NOTSET so inherits level DEBUG
<--""
Level WARNING
|
o<--[ansible]
|
o<--[ansible.utils]
|
o "ansible.utils.display"
Level DEBUG
Propagate OFF
Handler File u'/tmp/venv/ansible.log'
Formatter fmt='%(asctime)s p=%(process)d u=%(user)s | %(message)s' datefmt=None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment