Nodebestpractices: Adding Winston as a recommended logger

Created on 27 Nov 2020  路  7Comments  路  Source: goldbergyoni/nodebestpractices

@kevynb @josh-hemphill @denisecase

I just noted that we approved the PR logger and Winston was completely removed.

I would propose that it should be on the list, Pino should remain on top, but at least Winston should get mentioned.

Why?

  1. It's still the most popular one, this means that many capable engineers give it their trust and it didn't let them down
  2. There's nothing fundamentally wrong with it. There are some minor concerns like the file-oriented docs, not optimized performance but it can stand to most missions

Thoughts?

image

Most helpful comment

Yeah, I think providing multiple options is good, provided that we provide sufficient information about their pro/cons and use cases to make it easy for readers to determine which should be used for their use case.

All 7 comments

Agreed!

Yeah, I think providing multiple options is good, provided that we provide sufficient information about their pro/cons and use cases to make it easy for readers to determine which should be used for their use case.

I think it should remain out if critical issues are still not addressed with the package. Also, the logger's page has a non-working link(https://github.com/goldbergyoni/nodebestpractices/blob/master/sections/errorhandling/usematurelogger.md#684) mentioned for why winston is removed. Whereas it should have been https://github.com/goldbergyoni/nodebestpractices/issues/684

@swapnil0545 What critical issues?

@swapnil0545 I see there 1 related issue and asking myself - Is this fair or right to drop a mature OSS project that works great for many because of one issue? In real-estates the property value is estimated mostly by the number of real people that paid real money for similar properties, Winston is the logger of choice for most of the engineers and this tells me more than a single issue

It might make more sense to only mention Winston in the extended document, where we have room to mention it with the caveat that for any logger used, you should not rely on the logger for persistence.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rhinonan picture rhinonan  路  5Comments

goldbergyoni picture goldbergyoni  路  5Comments

bikingbadger picture bikingbadger  路  6Comments

goldbergyoni picture goldbergyoni  路  4Comments

kbariotis picture kbariotis  路  5Comments