You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current messaging during startup is useful for development debugging, but it can be unintuitive for non-developer users attempting to troubleshoot their own install.
Nest serves Angular and Docusaurus as static files, so nothing needs to be modified with those applications. Only NestJS needs to have its default logging disabled in production. However, if NODE_ENV is development, we should leave the console messaging as it is right now.
Logging should be kept to a minimal. Likely, all that needs to be logged is when the application is starting, once it is finished, and any errors if they occur. If there's other situations when you feel a log is necessary, then feel free to add them. Errors can be logged as-is to the console. Colors can be used if they improve the experience - something like Scholarsome - [console message], with Scholarsome in purple.
I've provided a couple links below. For the implementation, I recommend implementing a custom logger service and using Winston as the logger, but you're welcome to use another logger or implementation if it works better.
The current messaging during startup is useful for development debugging, but it can be unintuitive for non-developer users attempting to troubleshoot their own install.
Nest serves Angular and Docusaurus as static files, so nothing needs to be modified with those applications. Only NestJS needs to have its default logging disabled in production. However, if
NODE_ENV
is development, we should leave the console messaging as it is right now.Logging should be kept to a minimal. Likely, all that needs to be logged is when the application is starting, once it is finished, and any errors if they occur. If there's other situations when you feel a log is necessary, then feel free to add them. Errors can be logged as-is to the console. Colors can be used if they improve the experience - something like
Scholarsome - [console message]
, with Scholarsome in purple.I've provided a couple links below. For the implementation, I recommend implementing a custom logger service and using Winston as the logger, but you're welcome to use another logger or implementation if it works better.
Resources:
https://docs.nestjs.com/techniques/logger
https://www.npmjs.com/package/winston
The text was updated successfully, but these errors were encountered: