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

Remove winston logger #64

Merged
merged 1 commit into from
Apr 10, 2021
Merged

Remove winston logger #64

merged 1 commit into from
Apr 10, 2021

Conversation

owais
Copy link
Contributor

@owais owais commented Apr 9, 2021

This commit removes winston logger as a dependency and replaces it with
a very simple console.log based implementation. The implementation
satisfies all current uses of the winston logger in this library.

This shaves off about 700 kilobyes un-gzipped from bundle size and
removes a few indirect dependencies which is very good for enviorments
like AWS Lambda.

This also makes it possible to build the library with esbuild which had
issues with one of it's dependencies (logform).

@owais owais requested review from mmusik, seemk, a team and pellared April 9, 2021 17:39
lib/logger.js Outdated Show resolved Hide resolved
This commit removes winston logger as a dependency and replaces it with
a very simple console.log based implementation. The implementation
satisfies all current uses of the winston logger in this library.

This shaves off about 700 kilobyes un-gzipped from bundle size and
removes a few indirect dependencies which is very good for enviorments
like AWS Lambda.

This also makes it possible to build the library with esbuild which had
issues with one of it's dependencies (logform).
@owais owais merged commit 0b9c68e into master Apr 10, 2021
@owais owais deleted the remove-winston branch April 10, 2021 08:46
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.

2 participants