Fix typos in the Logging section of README.md
This commit is contained in:
@@ -55,7 +55,7 @@ This log level filters out messages with a lower priority.
|
|||||||
Additionally, you have the flexibility to override the log level for individual tags (but not lower than the global log level).
|
Additionally, you have the flexibility to override the log level for individual tags (but not lower than the global log level).
|
||||||
This can be archived by calling the following function:
|
This can be archived by calling the following function:
|
||||||
```c
|
```c
|
||||||
logger_set_level(LOG_TAG, LOG_LEVEL);
|
logger_set_log_level(LOG_TAG, LOG_LEVEL);
|
||||||
```
|
```
|
||||||
If the log level for a tag is not set, the global log level is used.
|
If the log level for a tag is not set, the global log level is used.
|
||||||
|
|
||||||
@@ -82,8 +82,8 @@ For instance, a log entry may look like this:
|
|||||||
static const char *TAG = "main";
|
static const char *TAG = "main";
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
// Set log level for tag "main" to LOG_INFO
|
// Set log level for tag "main" to LOG_LEVEL_INFO
|
||||||
logger_set_level(TAG, LOG_INFO);
|
logger_set_log_level(TAG, LOG_LEVEL_INFO);
|
||||||
|
|
||||||
LOG_DEBUG(TAG, "This message will not be printed");
|
LOG_DEBUG(TAG, "This message will not be printed");
|
||||||
LOG_INFO(TAG, "This message will be printed");
|
LOG_INFO(TAG, "This message will be printed");
|
||||||
|
|||||||
Reference in New Issue
Block a user