Skip to content

Commit 06f1b6c

Browse files
committed
periodic update 07/01/2022 15:23 PDT
1 parent 64e668a commit 06f1b6c

File tree

90 files changed

+2056
-4781
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+2056
-4781
lines changed

doc_source/portingguide/afr-byoc.md

-142
This file was deleted.

doc_source/portingguide/afr-echo-server.md

-136
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Implementing the library logging macros<a name="afr-library-logging-macros"></a>
2+
3+
The FreeRTOS libraries use the following logging macros, listed in increasing order of verbosity\.
4+
+ `LogError`
5+
+ `LogWarn`
6+
+ `LogInfo`
7+
+ `LogDebug`
8+
9+
A definition for all the macros must be provided\. The recommendations are:
10+
+ Macros should support `C89` style logging\.
11+
+ Logging should be thread safe\. Log lines from multiple tasks must not interleave with each other\.
12+
+ Logging APIs must not block, and must free application tasks from blocking on I/O\.
13+
14+
Refer to the [Logging Functionality](https://www.freertos.org/logging.html) on FreeRTOS\.org for implementation specifics\. You can see an implementation in this [example](https://github.com/FreeRTOS/lab-iot-reference-nxp-rt1060/tree/main/examples/common/logging)\.
15+
16+
## Testing<a name="testing-logging"></a>
17+
+ Run a test with multiple tasks to verify logs do not interleave\.
18+
+ Run a test to verify that the logging APIs do not block on I/O\.
19+
+ Test logging macros with various standards, such as `C89,C99` style logging\.
20+
+ Test logging macros by setting different log levels, such as `Debug`, `Info`, `Error`, and `Warning`\.

0 commit comments

Comments
 (0)