I hereby claim:
- I am fabianbuechler on github.
- I am fabianbuechler (https://keybase.io/fabianbuechler) on keybase.
- I have a public key ASDNGnlE75iuDEQ72dHUE_8p8LTDZXKASQbM6icU-HFW-go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import logging | |
import json | |
import os | |
from pprint import pprint | |
import sys | |
import structlog | |
class ProcessorFormatter(logging.Formatter): |
processors = [ | |
structlog.stdlib.add_logger_name, | |
structlog.stdlib.add_log_level, | |
structlog.stdlib.PositionalArgumentsFormatter(), | |
structlog.processors.TimeStamper( | |
fmt='%Y-%m-%d %H:%M:%S' if log_console else 'iso'), | |
structlog.processors.StackInfoRenderer(), | |
structlog.processors.format_exc_info, | |
] | |
if log_console: |