Skip to content
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

Logging solution using express-winston and sample transport config #3498

Open
wants to merge 1 commit into
base: release/v3.24.6
Choose a base branch
from

Conversation

chrisekelley
Copy link
Member

Description

Type of Change

[Please delete irrelevant options]

  • New feature (non-breaking change which adds functionality)

Proposed Solution

This would provide the following output:

{"level":"info","message":"GET /nest/group/list 401 59ms","meta":{}}
{"level":"info","message":"GET /nest/group/grumblepunk 404 11ms","meta":{}}
{"level":"info","message":"POST /api/group-3d906deb-cf37-4ddd-92d6-8ac3352aa5ca/upload 200 145ms","meta":{}}
{"level":"info","message":"POST /api/group-3d906deb-cf37-4ddd-92d6-8ac3352aa5ca/upload 200 197ms","meta":{}}

The second line would show if someone is trying to hack us.
The 3rd and 4th shows that uploads were successful (200), and the time it took in ms.

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