How to config flask app.logger from a configure file?

Viewed 9584

Is there any way to config flask app.logger from a configure file, like:

logging.config.fileConfig('/path/to/logging.cfg')

or

logging.config.dictConfig(config_dict)

So i can use app.logger.info('some message') to log both in develop and product mode.

2 Answers
Related