-
I run tests using the "expect" tool to exercise the CLI. I would like to get logging output on a separate file descriptor from the CLI output so it can be put in a file and not confuse expect. Is this possible now, if so what source file do I tweak? If not, this would be a desirable enhancement. (This is running on Linux.) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@bagel99 you can use the
|
Beta Was this translation helpful? Give feedback.
-
So, if I understand correctly, my solution involves creating an alternate otPlatLog() in posix/platform/loggin.cpp that doesn't call vsyslog() but, for example, just calls vprintf(stderr, ...)? |
Beta Was this translation helpful? Give feedback.
@bagel99 you can use the
OPENTHREAD_CONFIG_LOG_OUTPUT
to specify where the log output goes to.OPENTHREAD_CONFIG_LOG_OUTPUT_APP
will send the logs to app (CLI or NCP) - which I guess is what you have in your setup.OPENTHREAD_CONFIG_LOG_OUTPUT_PLATFORM_DEFINED
will useotPlatLog()
which can be implemented by the platform layer.