LOG_DBG message not appear in LTE while LOG_INF works well

I added a new event module to asset_tracker application. The default LOG_DBG messages are very well shown in LTE, but that of my module don't appear in LTE. I replaced LOg_DBG with LOG_INF, then messages are displayed in LTE. What is required to do so that LOG messages appear in LTE ?

Parents Reply
  • Hi,

    If you add overlay-debug.conf as overlay config file when building, then the log level of the modules will be set to debug. If not, they should default to info, unless you set the default log level for all modules to debug in prj.conf using CONFIG_LOG_DEFAULT_LEVEL. You can check what the log levels have been set to after building by looking in the file asset_tracker_v2/build/zephyr/.config. If you for example search for CONFIG_SENSOR_MODULE_LOG_LEVEL you will see which level it is set to, for example:

    # CONFIG_SENSOR_MODULE_LOG_LEVEL_OFF is not set
    # CONFIG_SENSOR_MODULE_LOG_LEVEL_ERR is not set
    # CONFIG_SENSOR_MODULE_LOG_LEVEL_WRN is not set
    CONFIG_SENSOR_MODULE_LOG_LEVEL_INF=y
    # CONFIG_SENSOR_MODULE_LOG_LEVEL_DBG is not set
    CONFIG_SENSOR_MODULE_LOG_LEVEL=3

    Best regards,

    Marte

Children
No Data
Related