-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Tagged version of LOG_* macros #10651
Copy link
Copy link
Closed
Labels
Area: coreArea: RIOT kernel. Handle PRs marked with this with care!Area: RIOT kernel. Handle PRs marked with this with care!State: staleState: The issue / PR has no activity for >185 daysState: The issue / PR has no activity for >185 daysType: new featureThe issue requests / The PR implemements a new feature for RIOTThe issue requests / The PR implemements a new feature for RIOT
Description
Description
There are many different output formats used with the LOG_ * macros. The formats that have been found are:
LOG_INFO("message\n");
LOG_INFO("INFO [MODULE] message\n");
LOG_INFO("[module] message\n");
LOG_INFO("module: message\n");
LOG_INFO("function: message\n");The same for LOG_ERROR and LOG_WARNING.
Feature request
To avoid that each module is using its own output format and to be able to implement a uniform format for all LOG_ * messages, there should be tagged versions of these macros LOG_TAG_INFO (tag, ...) that generates a consistent output:
[tag] message
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area: coreArea: RIOT kernel. Handle PRs marked with this with care!Area: RIOT kernel. Handle PRs marked with this with care!State: staleState: The issue / PR has no activity for >185 daysState: The issue / PR has no activity for >185 daysType: new featureThe issue requests / The PR implemements a new feature for RIOTThe issue requests / The PR implemements a new feature for RIOT