Did you finally solved the problem of using a logger before starting the Flask application?