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

feat: Enable color logging in console mode #42

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

Conversation

piotr-voi
Copy link

@piotr-voi piotr-voi commented Aug 21, 2024

This change introduces colored logs when running the service worker in console mode.

https://pkg.go.dev/go.uber.org/zap/zapcore#CapitalColorLevelEncoder

Two changes are included:

  • actual logs coloring
  • zap lib version update

Screen from the example service:
Screenshot from 2024-08-21 17-14-55

@piotr-voi piotr-voi force-pushed the colored-console-output branch from 6cb6ece to 20eae8f Compare August 21, 2024 15:23
@piotr-voi piotr-voi force-pushed the colored-console-output branch from c8f009b to e5f2492 Compare August 30, 2024 15:01
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