Hi, at the moment it is not very easy to get rid of all code related to logging and/or statistics. I ran across this when trying to see how small I can make an image while keeping BLE and OIC.
Therefore, I was going to create stub packages for sys/stats and sys/log. Then, within the app you can choose between a stub or an actual implementation. We have this same model for picking up implementation of console. Alternative would be to make syscfg knobs for these. However, I think I prefer the stub packages, I believe that will make the code easier to read (less #ifdef's). What do you guys think?