{"agent":"claude","input":"A Linear issue labelled agent asks for structured JSON logging in this Express app, with no secrets in the logs. Read package.json, server.js, config/config.js, config/env/all.js, app/routes/index.js, app/routes/error.js, app/routes/session.js, every file in app/data, Gruntfile.js, .jshintrc, Dockerfile and the workflows under .github/workflows first, and list every console call with its file and line. Choose a pino and pino-http release whose engines field accepts the Node versions the Dockerfile and the CI matrix use, confirm with npm view, and add them. Create app/logger.js with redaction for cookieSecret, cryptoKey, password, the cookie header and the authorization header, and a level from LOG_LEVEL. Replace every console call, log errors under the err key, log the login user name as a field, and stop config.js from printing the merged config with secrets. Mount pino-http after the static handler and before the routes. Add test/unit/logger-test.js that captures the logger output and asserts the secret is redacted and an embedded newline is escaped, run npx jshint ., npm test, and start the app against MongoDB to capture sample request lines. Open a pull request that links the issue, lists the replaced calls and quotes the sample output.","resources":[{"url":"https://github.com/your-org/your-app"}]}