mirror of
https://github.com/espressif/openthread.git
synced 2026-06-05 21:14:49 +00:00
213745a81f
Refactors the example CLI app and the CLI module code to provide a default implementation of the 'APP' log output option for any CLI apps. This default is used when log output is configured to 'APP' output and the CLI application itself does not provide its own implementation of `otPlatLog()`. This extends the current logging option (syslog) for the Posix app ot-cli with the option to direct the log output to the CLI app, which then prints it in stdout. This logging option can be enabled using the existing -DOT_LOG_OUTPUT=APP. Previously, this gave a build error for the Posix platform. This logging method is useful/required for running NCPs in OTNS, such that the simulator can capture all log output and at the same time syslog is not overly burdened on the host machine.