-
Notifications
You must be signed in to change notification settings - Fork 895
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
Remove some obvious pitfalls. Migrate to winston@3 API #232
Conversation
Can you update the package.json so that I can install winston@3? I'm very very happy about this PR, thanks @indexzero! |
You say "never use the default logger if you have hard performance needs (like benchmarking)." But Winston's readme does not make this clear, even on the 3.x branch. It merely says "If you would prefer to manage the object lifetime of loggers you are free to instantiate them yourself." That doesn't give the reader any indication that there is a significant performance difference between manual management and using the default logger. Therefore, I assume the way Winston gets used the majority of the time is via the simpler method: the default logger. Am I wrong? I bring this up because I think our comparison benchmarks should at least include the patterns most generally used by the other loggers. It is certainly desirable to show comparisons against the other loggers's performance configurations as well; indeed, our benchmarks include Pino's "slow" default and fast opt-in mode. |
let's benchmark both |
…needs (like benchmarking). Use a stream Transport to be more closely aligned with feature set offered by peer sets. Begin to move to winston@3 API
This is good to merge since @jsumners the default API should considered deprecated as of
Also: yes, this is incorrect. Most issues / samples I've seen have |
Very nice work on speeding up Winston; those are some impressive gains. I think we should wait to merge until 3.0.0 is out of release candidate stage. |
I'm ok with waiting, I think @indexzero has plans to move it to out of rc in the next week or so, I hope we don't wait too long. |
What should we do with this PR? |
I would suggest merging it. We're on (EDIT @indexzero): in rc |
Okay. Please remember to give us a drive-by commit to bump the version when you go final. |
@jsumners will do! Thanks for maintaining these benchmarks as part of |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The changes include:
level
property as a hard requirement for.log
)