I have noted that the code size of my project is reduced by more than a factor of two if I set NRF_LOG_ENABLED to 0. It is also reduced significantly if I set the Log Level to INFO versus DEBUG. That is because all of my log statements (in my code) are at DEBUG level.
Now I am trying to figure out why. I assume it must be for the storage of the strings. For example, the strings in a statement like this:
NRF_LOG_ERROR("Error starting scanner. Error code: 0x%02X", err_code);
If so, I guess there is no way to reduce the size of the code with logging.