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

colorful logging with winston logger #36

Merged
merged 3 commits into from Mar 4, 2022
Merged

colorful logging with winston logger #36

merged 3 commits into from Mar 4, 2022

Conversation

farhancdr
Copy link
Contributor

@farhancdr farhancdr commented Mar 4, 2022

Created a simple logger with winston.
It will be logging to console like this...

loggerScreenShot

It won't break any other codes. Now we can change all console.log to logger.info or logger.warn or logger.error .

Copy link
Owner

@foyzulkarim foyzulkarim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do a conditional change. :)
Again thanks

server/src/core/index.js Show resolved Hide resolved
@farhancdr
Copy link
Contributor Author

@foyzulkarim vaiya, I've added the conditional logger selection functionality on logger.js file. Kindly check that.

Copy link
Owner

@foyzulkarim foyzulkarim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks.

@foyzulkarim foyzulkarim merged commit 4119def into foyzulkarim:main Mar 4, 2022
@farhancdr farhancdr deleted the feat/winston-logger branch March 4, 2022 13:59
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.

None yet

2 participants