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

Replace zap with slog #5

Merged
merged 4 commits into from
Oct 13, 2023
Merged

Replace zap with slog #5

merged 4 commits into from
Oct 13, 2023

Conversation

jan-law
Copy link
Contributor

@jan-law jan-law commented Oct 12, 2023

The colors, time, and file name formatting should match the previous zap config.

The key names are prefixed with the logger names according to tint's default behaviour. If you want to remove them, I think I'd have to make another custom slog handler. The keys can't be modified using ReplaceAttr nor with the slog-multi piped handlers. Let me know what you think of the current log output.

eg
2023-10-12 19:37:43:000 DEBUG invokers.go:67 totem invoking method using local service totem.service=test.Echo totem.method=Echo totem.tag=80 totem.md=[]

@kralicky kralicky merged commit ab56f54 into kralicky:main Oct 13, 2023
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.

None yet

2 participants