-
Notifications
You must be signed in to change notification settings - Fork 449
[FEAT] logger: debug output enrichment #2254
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
Conversation
Remove redundant condition and make use of isAggregateSetAndIsLogNotNew() function.
Debug level logs now have pkg, file, line key/values prepended.
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.
@geyslan why export CallerInfo
, CallerPackage
, and CallerFile
if no one is using it?
After our yesterday discussion, I thought that even if not at debug level the user of the logger could want to use this information as key/values for a Info or Warn level like:
I know, it's a information intrinsic to debug level, however, if one needs it, it's available now for any case. Let me know what you both think. @rafaeldtinoco |
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.
@geyslan IMO we should not try to predict what funcs will be needed, and add methods as the necessity appears, if we ever need those methods for a use case, we add them. But if others agree with adding them here, no problem for me. :)
I agree with you. As this is not a priority, I would like to wait others to state about it before merge or remove the CallerInfo(), CallerPackage(), CallerFile() and CallerLine(). Thanks for reviewing this. |
As there was no feedback, I'm going to remove that helpers. |
8b2579b
to
72c3828
Compare
Initial Checklist
Description (git log)
72c3828 logger: enrich debug level logs
ffa109a logger: refactor
Fixes: #2248
Type of change
How Has This Been Tested?