-
Notifications
You must be signed in to change notification settings - Fork 3
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
Update logger to facilitate the use of global logger #150
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really like the improvement. I would improve a bit the readme though. Maybe using chat gpt, providing code as input?
Sure, we may try this with cursor?? would be pretty nice. I've just added a pretty basic README |
@rawmind0 yes, using cursor is what I meant!! |
Ok, let me check if i can do it. |
Logger README has been updated using ia |
pkg/logger/README.md
Outdated
## Installation | ||
|
||
```go | ||
go get -u go.uber.org/zap |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
go get zap? I don't think this is correct!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right. Fixed
This PR add the chance to use global zap logger within the packages. Also some code cleanup has been done, like remove the logger mutex due to zap package already take care of them
🔗 zboto Link