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

Upgrade Winston from 2.x to 3.x #195

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bausmeier
Copy link
Contributor

Hi Jembi team 👋

We're supporting an application which still makes use of Hearth at the moment and are doing a few small changes to make it easier to monitor and observe. We thought we'd contribute some of those changes back up stream.

This PR upgrades Winston from v2 to v3 which will then enable us to use the newer JSON log format to do structured logging.

If you're happy to accept PRs that'd be great, otherwise feel free to close this. There may be a few more incoming.

@bausmeier
Copy link
Contributor Author

@MattyJ007 I'm not sure if anyone at Jembi is actually still looking at this repo. Any chance you could review or get someone else to take a look?

Pass the initialised logger in as an argument to plugins so that they
can log using the same format and options as the rest of the
application. This is mainly for the sake of external plugins which get
mounted into the plugins folder since they can no longer require Winston
directly.
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.

1 participant