Python flask – Log to 2 different destinations with different log error levels

Solution
import logging

from elasticapm.contrib.flask import ElasticAPM

apm = ElasticAPM(app, logging=logging.ERROR)