Skip to content

Instantly share code, notes, and snippets.

@larsyencken
Last active December 28, 2015 08:59
Show Gist options
  • Select an option

  • Save larsyencken/7475510 to your computer and use it in GitHub Desktop.

Select an option

Save larsyencken/7475510 to your computer and use it in GitHub Desktop.
Build a structlog logger which output's JSON
import structlog
l = structlog.get_logger(processors=[
structlog.processors.TimeStamper(),
structlog.processors.JSONRenderer()
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment