how can i log outside of main flask module?,app.run()