-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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!: use cosmossdk.io/log
logger
#15011
Conversation
e2f86ea
to
fba6762
Compare
@julienrbrt we need the pretty colours to come back. My terminal has had colourless logs for too long 😤😤 |
Totally agree 🤣. Finishing this up quickly! |
1795b3c
to
a018f11
Compare
cosmossdk.io/log
logger
cosmossdk.io/log
loggercosmossdk.io/log
logger
log/logger.go
Outdated
// Impl returns the underlying logger implementation | ||
// It is used to access the full functionalities of the underlying logger | ||
// Advanced users can type cast the returned value to the actual logger | ||
Impl() interface{} |
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.
Is the idea a user/caller would type cast, to say zerolog or 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.
Yes, so in the SDK we can use zerolog structured API if we like after a type cast, but so that we don't leak implementation details for other to implement any other logger.
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.
love it!
lets tag v1 of log since i dont think we will be touching it for a while. cleans up a lot if imports and potential replaces |
Description
ref: #14967
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change