TheThingsIndustries / generic-node-se

Generic Node Sensor Edition
https://www.genericnode.com
Other
108 stars 31 forks source link

Improve apps logs #199

Closed elsalahy closed 2 years ago

elsalahy commented 3 years ago

Summary:

We can improve the logged messages at the start of each application in order to have more consistency across applications.

Why do we need this?

To have a more professional looking output at the start of each application.

What is already there? What do you see now?

Each application outputs a different log message at the start of the app.

What is missing? What do you want to see?

A consistent style of logged messages at the start of each application.

Something like

  APP_PPRINTF("\r\n -------------- Starting GNSE <app name> -------------- \r\n");

and maybe can add

  APP_PPRINTF("\r\n -------------- App config: DEBUGGER_ON  -------------- \r\n");
  APP_PPRINTF("\r\n -------------- App config: LOW_POWER_DISABLE -------------- \r\n");

How do you propose to implement this?

Define standard output that should be sent over UART at the start of each application.

Environment:

OS and bare-metal

Acceptance Criteria:

No change in applications behavior

What can you do yourself and what do you need help with?

All