Is there a way to configure the app.logger flag from the configuration file, for example:
logging.config.fileConfig('/path/to/logging.cfg')
or
logging.config.dictConfig(config_dict)
Therefore, I can use app.logger.info('some message') to register both in development mode and product mode.
source share