Skip to content
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

Implement zephyr system logger #120

Closed
wants to merge 1 commit into from

Conversation

victor999
Copy link

UART logging: https://docs.zephyrproject.org/1.12.0/subsystems/logging/system_log.html
Using logging:
#include <logging/sys_log.h>
SYS_LOG_ERR
SYS_LOG_WRN
SYS_LOG_INF
SYS_LOG_DBG

@victor999 victor999 mentioned this pull request Oct 27, 2018
2 tasks
@@ -11,6 +11,7 @@
#include <zephyr.h>
#include <sensor.h>
#include <shell/shell.h>
#include <logging/sys_log.h>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now that I am checking the zephyr docs I see there're actually two (actually three) log systems:

logger seems to be better suited for our general logging, could you take a look at it? There're some examples in samples/subsys/logging.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I implemented logger instead of system logger. What I should do now? New pull request?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's up to you; I usually squash the commits and force push to the branch, but opening a new PR is also ok :)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@victor999 victor999 changed the title Implement zephyr logging Implement zephyr system logger Oct 31, 2018
@lorepieri8 lorepieri8 closed this Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants