app.logger.setLevel(logging.INFO)
handler = logging.handlers.RotatingFileHandler(LOG_FILENAME, maxBytes=1024 *
    1024 * 100, backupCount=20)
app.logger.addHandler(handler)
Simplifying logging in Flask