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

#14 🛠️ Inited Glide Logging #30

Merged
merged 7 commits into from
Dec 23, 2023
Merged

#14 🛠️ Inited Glide Logging #30

merged 7 commits into from
Dec 23, 2023

Conversation

roma-glushko
Copy link
Member

@roma-glushko roma-glushko commented Dec 17, 2023

Inited Glide Logging based on Zap.

I have ended using Zap (non-sugar version) over slogs because of its superior performance:
https://github.com/uber-go/zap?tab=readme-ov-file#performance

Changes

  • Introduced a new logging config ✅
  • Supported two encodings: plain console, json ✅
  • Hertz Logger is integrated with the general logging config ✅
  • Added more static checks potentially useful for us ✅

Testing

Console Output

Screenshot 2023-12-17 at 17 39 19

JSON Structured Output

Screenshot 2023-12-23 at 23 49 44

@roma-glushko roma-glushko self-assigned this Dec 17, 2023
@roma-glushko roma-glushko changed the title #14 Inited Glide Logging #14 🛠️ Inited Glide Logging Dec 17, 2023
@roma-glushko roma-glushko linked an issue Dec 17, 2023 that may be closed by this pull request
@roma-glushko roma-glushko added the area:telemetry Logging, metrics, traces label Dec 17, 2023
@roma-glushko roma-glushko marked this pull request as draft December 17, 2023 16:31
@roma-glushko roma-glushko marked this pull request as ready for review December 21, 2023 20:40
@roma-glushko roma-glushko merged commit 23693c7 into develop Dec 23, 2023
5 checks passed
@roma-glushko roma-glushko deleted the 14-init-logging branch December 24, 2023 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:telemetry Logging, metrics, traces
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Init logger
1 participant