-
Notifications
You must be signed in to change notification settings - Fork 7
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
Introduce a real logging library #290
Conversation
133705e
to
3046a45
Compare
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.
Nice changes in general. I don't have strong opinions on what logger we are using, I just have 3 things that I would like to see in order to consider this as an improvement or at least not a regression
- Consistency across repos
- Logging performance
- Build performance
I have left separate comments for all of this in the review, so we can discuss it in a thread. Let me know how those sound to you
One more thing I forgot to mention that would be extremely nice to have is env variable to control the level of log that is supported. Basically just control the |
IE something that a logging library would give us for free? https://github.com/gabime/spdlog/blob/v1.x/include/spdlog/cfg/env.h |
Looks good, I think we should just ping someone from tt-metal and other repos that are using existing logger to weigh in on this as well. @blozano-tt you have worked cross-repos the most from us, maybe you could do it? |
3a70809
to
cb173e0
Compare
For cross-project consistency, there's a design decision around log identification. If this becomes a shared solution across projects, we'd want to distinguish the source: This would affect macro naming/use and initialization. I suggest we focus on establishing robust logging into UMD first -- this will directly improve UMD developer experience by:
Later on, after we've lived with the spdlog for a while and have had opportunity to adjust how we are using it -- then consider how to achieve consistency across projects. Thoughts? |
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.
Seems like we'll feel benefits by using external well established logging library.
As long as this is not going in some opposite direction (which doesn't seem like it is the case) to other repos, I'm all for it.
b013459
to
7c48bda
Compare
0a9d1e7
to
001c739
Compare
001c739
to
af3a640
Compare
Yayy! Thanks @joelsmithTT ! |
Issue
Follow on from #176
#160
#140
Description
List of the changes
Testing
API Changes
There are no public API changes in this PR.