Description
This is a backend issue for the GrantFox campaign. Emit admin actions to a separate structured log channel so they can be alerted on without noise from request logs.
Requirements and Context
- Pino child logger for admin actions
- Distinct stream/sink configuration
- Every admin endpoint emits via this channel
- Adhere to repo's lint and code style
- Must be secure, tested, and documented
Suggested Execution
- Fork the repo and create a branch
git checkout -b feature/admin-log-channel
- Implement changes
src/middleware/adminLog.ts (new)
src/routes/admin/**
- Test and commit
Example commit message
feat: structured admin_action log channel
Acceptance Criteria
Guidelines
- Minimum 90% test coverage on changed lines
- Structured logging with correlation IDs
- Clear documentation and inline comments
- Timeframe: 96 hours
Description
This is a backend issue for the GrantFox campaign. Emit admin actions to a separate structured log channel so they can be alerted on without noise from request logs.
Requirements and Context
Suggested Execution
src/middleware/adminLog.ts (new)src/routes/admin/**Example commit message
Acceptance Criteria
Guidelines