{"agent":"claude","input":"Add structured logging to this Slim 4 app. Read composer.json, public/index.php, app/settings.php, app/dependencies.php, app/middleware.php, app/routes.php, src/Application/Actions/Action.php, src/Application/Actions/User/ListUsersAction.php, src/Application/Handlers/HttpErrorHandler.php, src/Application/Middleware/SessionMiddleware.php, tests/TestCase.php, phpunit.xml, docker-compose.yml and .github/workflows/tests.yml first. In app/dependencies.php set a Monolog JsonFormatter on the StreamHandler when a new logger.format setting is json, keep the UidProcessor, and add PsrLogMessageProcessor and WebProcessor. Add src/Application/Middleware/RequestLoggingMiddleware.php as a PSR-15 middleware that logs one info record per request with method, path, status and duration_ms in context, and register it in app/middleware.php. In app/settings.php set logError and logErrorDetails true and add format json. In public/index.php pass the container's LoggerInterface as the third argument of HttpErrorHandler and the fourth argument of addErrorMiddleware, and explain in the pull request that Slim otherwise logs errors through its own Slim\\Logger and PHP's error_log. Add tests/Application/Middleware/RequestLoggingMiddlewareTest.php extending Tests\\TestCase that swaps LoggerInterface for a Monolog logger with a TestHandler and asserts a record for GET /users with status 200 and for an unknown path with status 404, plus a test that a StreamHandler on php://memory with the JsonFormatter writes a line that decodes with message, context and extra.uid. Run composer install, composer test, vendor/bin/phpstan and vendor/bin/phpcs, start the app with composer start, curl /users and /users/9999, then open a pull request that pastes the test output and the JSON log lines.","resources":[{"url":"https://github.com/your-org/your-app"}]}