Skip to content

Tagged version of LOG_* macros #10651

@gschorcht

Description

@gschorcht

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: coreArea: RIOT kernel. Handle PRs marked with this with care!State: staleState: The issue / PR has no activity for >185 daysType: new featureThe issue requests / The PR implemements a new feature for RIOT

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions