Replaced external 'morgan' library with a native custom logging middleware in api/server.js. The new middleware logs: - Incoming requests: Timestamp, HTTP method, URL, and client IP. - Outgoing responses: Timestamp, status code, status message, original method, URL, and request duration. This enhances debugging capabilities by providing clear insights into API traffic and performance directly from the server logs.