Skip to content

Enhance request logging #1341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 13, 2025
Merged

Enhance request logging #1341

merged 3 commits into from
Apr 13, 2025

Conversation

YasharF
Copy link
Collaborator

@YasharF YasharF commented Apr 13, 2025

No description provided.

YasharF added 3 commits April 13, 2025 01:06
- Move morgan setup from app.js to config/morgan.js
- Added requester IP to the morgan log output
- Add the following to the request logs with custom tokens:
  - colored-status: Color-coded HTTP status
  - short-date: Cleaner timestamp format
  - parsed-user-agent: Simplified browser/OS info
  - content-length-in-kb: Human-readable sizes when the content isn't streamed
@YasharF YasharF merged commit 31df517 into sahat:master Apr 13, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant