flask-logconfig.readthedocs.io - Flask-LogConfig — Flask-LogConfig 0.4.2 documentation

Example domain paragraphs

Flask extension for configuring Python logging module.

pip install Flask-LogConfig Quickstart ¶ Use Flask-LogConfig to easily configure the Python logging module using your Flask app’s config object:

The main configuration option for Flask-LogConfig is LOGCONFIG . This option can either be a dict or a pathname to a configuration file. The format of the dict or config file must follow the format supported by logging.config.dictConfig or loging.config.fileConfig . See Logging Configuration for more details. If using a pathname, the supported file formats are JSON , YAML , and ConfigParser .