Skip to content

Instantly share code, notes, and snippets.

@briggleman
Created June 19, 2019 19:58
Show Gist options
  • Save briggleman/cf9ec5ecfff9f1de26a9ba853d273a12 to your computer and use it in GitHub Desktop.
Save briggleman/cf9ec5ecfff9f1de26a9ba853d273a12 to your computer and use it in GitHub Desktop.
---
version: 1
disable_existing_loggers: False
filters:
uuid:
(): "clickstreamer.config.ClientUUID"
formatters:
simple:
format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
colored:
(): "colorlog.ColoredFormatter"
datefmt: "%Y-%m-%d %H:%M:%S"
format: "%(white)s%(asctime)s.%(msecs)03d%(reset)s - %(cyan)s[%(module)s.%(funcName)s]%(reset)s - %(log_color)s[%(levelname)s] :=>%(reset)s %(message)s"
log_colors:
DEBUG: purple
INFO: blue
WARNING: yellow
ERROR: red
CRITICAL: red,bg_white
handlers:
console:
class: logging.StreamHandler
level: DEBUG
formatter: colored
stream: ext://sys.stdout
loggers:
project_dir:
level: DEBUG
handlers: [console]
propagate: False
root:
level: DEBUG
handlers: [console]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment