[5.0] Fix ConfigureLogging Closure

Just added a `use ($app)` to avoid the PHP Notice