Flask app logging and SQLAlchemy logging configuration.