Configure logging and debug mode for werkzeug