You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/07/05 22:13:03 UTC
[GitHub] ccollins476ad opened a new pull request #1249: Switch everything
over to modlog
ccollins476ad opened a new pull request #1249: Switch everything over to modlog
URL: https://github.com/apache/mynewt-core/pull/1249
This PR changes all existing packages to use the modlog facility rather than directly call into the `sys/log` API. I think this is the right direction, but it is a somewhat major change, and I am certainly open to feedback.
90+% of the changes are in the final commit ("Use modlog instead of direct log calls"). The changes in this commit can be broken down as follows:
*Library Packages that log*
* Add `sys/log/modlog` dependency to `pkg.yml`.
* Remove `log` required API from `pkg.yml`.
* Add syscfg setting for package's unique module ID.
* Replace `LOG_[...]` calls with `MODLOG_[...]` calls.
* Delete `struct log` object; remove call to `log_register()`.
*App packages*
* Add `sys/log/modlog` dependency to `pkg.yml`.
* Delete `struct log` object; remove call to `log_register()`.
* Delete custom log macros (e.g., `BLEPRPH_LOG()`).
* Replace calls to custom log macro with calls to`MODLOG_DFLT()`.
* Remove registration of `ble_hs_log` and `oc_log`. These logs don't exist anymore.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services