anyl-wallet icon indicating copy to clipboard operation
anyl-wallet copied to clipboard

improve Zephyr logging

Open pcppcp opened this issue 6 years ago • 5 comments

logging in our modules is a mess (printk() & co. everywhere)

  • [ ] investigate how logging works in zephyr
  • [ ] use proper log module setup and replace all stinky printk()s with log calls

pcppcp avatar Oct 23 '18 11:10 pcppcp

It seems like only UART log is available. If it is acceptable - I would like to work on it

victor999 avatar Oct 24 '18 20:10 victor999

hey Victor, sure, take a look. Ask if you have any questions.

relevant doc: https://docs.zephyrproject.org/1.12.0/subsystems/logging/system_log.html

pcppcp avatar Oct 25 '18 07:10 pcppcp

I enabled logging in config and implemented logging in sensor_service for now. I can pull it as first phase. Or you prefer to replace everything and then pull it. I tested the mechanism in hardware board. I can see log messages on UART.

victor999 avatar Oct 26 '18 10:10 victor999

Please create a PR, it's easier to discuss the code that way.

pcppcp avatar Oct 27 '18 08:10 pcppcp

#120

victor999 avatar Oct 27 '18 08:10 victor999