-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Feat/logger #80
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
Feat/logger #80
Conversation
- add comprehensive winston logger options - remove status code based skip key in morgan - fix typo - fix logger file structure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please take a pull of the changes to your local branch and resolve the reviewed changes. I have refactored file structure and morgan and winston logger configurations. Make sure you test the logging thoroughly before requesting a review.
Thanks!
package-lock.json
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use yarn as a package manager and not npm. Delete the package-lock.json and make sure yarn.lock only has newly installed dependency changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove package-lock.json and reinstall packages using yarn
wajeshubham
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Under Logger Folder
Created a logger for Applications Errors with Winston and for logging http call using Morgon
Since the output format and the method was not mentioned used custom format and displayed the output to the Console
Happy to make any changes if further infromation is provided by the maintainers
Demo image which shows both application error and http log
