Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

refactor: upgrades "winston" package, adjusts loggers #1303

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

Conversation

artem-zakharchenko
Copy link
Contributor

🚀 Why this change?

Upgrades winston package to version 3. Follows the migration guides to adjust existing usage for breaking API changes of the winston package.

  • Uses winston.createLogger instead of winston.Logger
  • Removes deprecated colors field from the logger config
  • Uses format field with format.colorize() for logs' colors (retains the previously set colors mapping)

📝 Related issues and Pull Requests

✅ What didn't I forget?

  • To write docs
  • To write tests
  • To put Conventional Changelog prefixes in front of all my commits and run npm run lint

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade winston to 3.x
2 participants