Created
January 11, 2022 10:55
-
-
Save oscaromeu/310780a26c76d45896b2b9c76053f3cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 1 | |
disable_existing_loggers: false | |
formatters: | |
console: | |
format: '%(asctime)s.%(msecs)03d|%(levelname)s|%(name)s|%(process)d|%(processName)s|%(filename)s:%(lineno)s|%(message)s' | |
datefmt: '%Y-%m-%d %H:%M:%S' | |
consoleJson: | |
class: pythonjsonlogger.jsonlogger.JsonFormatter | |
format: '%(asctime)s.%(msecs)03d|%(levelname)s|%(name)s|%(process)d|%(processName)s|%(filename)s:%(lineno)s|%(message)s' | |
datefmt: '%Y-%m-%d %H:%M:%S' | |
handlers: | |
console: | |
class: logging.StreamHandler | |
formatter: consoleJson | |
root: | |
level: INFO | |
handlers: [console] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment