Changes Implemented
- Added Pino for application log management.
- Support for console log output during development/debugging.
- Support for persisting logs as JSON files in the following directory:
/logs/recorte- When running with containers, it is recommended to use a volume for log file persistence.
Related Commit
feat: add structured logging with pino0a603a1
Request ID Middleware
Added a middleware responsible for generating and propagating the following header:
x-request-idBehavior
- If the request does not contain an
x-request-id, a UUID is automatically generated. - The same identifier is returned in the response headers.
- Improves request tracing and log correlation across the application.
Related Commit
feat: add request id middleware for request tracing3850bb2