diff --git a/README.md b/README.md index 6192e98..c428fdb 100644 --- a/README.md +++ b/README.md @@ -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). This can be archived by calling the following function: ```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. @@ -82,8 +82,8 @@ For instance, a log entry may look like this: static const char *TAG = "main"; int main(void) { - // Set log level for tag "main" to LOG_INFO - logger_set_level(TAG, LOG_INFO); + // Set log level for tag "main" to LOG_LEVEL_INFO + logger_set_log_level(TAG, LOG_LEVEL_INFO); LOG_DEBUG(TAG, "This message will not be printed"); LOG_INFO(TAG, "This message will be printed");