Flask logging setup
dictConfig, user defined object
Setup a python logging configuration with dictConfig
Logging configuration can be defined on different ways like a dict, ini file, yaml or json somethimes is more flexible to do it on code with python, all depends on the use case.
This small example show how to setup the logging configuration using dictConfig method and how to add an user defined object to the logging filter.
import os import logging import socket from flask import Flask from logging.
[Read More]