-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Improved Logging #86
Labels
Comments
ProposalUltimately, a production application will require a robust logging solution such as Winston. However, I am reluctant to bundle Winston in the core because:
A better solution is to define an interface and ship a default console logger with the core. Then if a user wants to use Winston (or anything else) they wrap it into the shape of the VendureLogger interface. Requirements
|
michaelbromley
added a commit
that referenced
this issue
Apr 17, 2019
michaelbromley
added a commit
that referenced
this issue
Apr 17, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right now the logging situation is a bit ad-hoc. There is the Nest logger, a few random console logs, and some other logging done when the proxy servers start up on bootstrap. Then also optional logging by TypeORM.
There needs to be a single logger through which all logging passes. It should be injectable but also available outside the context of the Nest lifecycle.
This will then allow better control of logging and enable different logging strategies in production / dev.
The text was updated successfully, but these errors were encountered: