-
Notifications
You must be signed in to change notification settings - Fork 10
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
Fix logging source location #150
Conversation
Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
I'm surprised that the source location works for |
Yes, we are doing something different in the This version should be the equivalent to what we do in |
Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
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.
tested and confirmed that the example now prints out source file name and line no.
Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
windows caught a compile error:
|
testing fix: b94745f |
🦟 Bug fix
Fixes #147
According to the spdlog notes about location flags, when using source location flags it's necessary to define this compiler flag:
and then, use the
SPDLOG_LOGGER_XXX()
macros. This patch adds the#define
and updates the example.Without this patch:
With this patch:
Summary
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.