This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

CLI Logging Formatting

Hi Nordic Forum! 

I'm currently developing a CLI controlled BLE scanner using the nRF52840 Dongle. 

Essentially I brought over the CLI example and adapted it to the a central/scanner code, I did this mostly to have logs on the Dongle (since it doesn't have a debugger), but also to add the possibility to control the application over the command line. 

Thing work for the most part, but when I log things to the terminal, the formatting is a big off, as seen here:

When I press tab the available commands are shown like in the picture, and every NRF_LOG call adds that header before. 

Initially I thought was the CLI colour option but I disable it, similar with the logger timestamp. When I run the CLI commands, the text is show without any header. 

Any idea how to remove this? 

I'm using SDK Version 16, using make/GCC as toolchain and using the CoolTerm terminal on macOS 10.14.6

Thanks in advance. 

Related