[cli] make otPlatLogOutput weak to allow application override (#12888)

Make `otPlatLogOutput()` `OT_TOOL_WEAK` in `cli_logging.cpp` so that
applications can provide their own strong definition to customize
instance-aware log output behaviour.
This commit is contained in:
Suvesh Pratapa
2026-04-20 08:34:32 -05:00
committed by GitHub
parent 4e216d0d88
commit 9bff14609d
+1 -1
View File
@@ -42,7 +42,7 @@
#if OPENTHREAD_CONFIG_LOG_OUTPUT == OPENTHREAD_CONFIG_LOG_OUTPUT_APP
#if OPENTHREAD_CONFIG_LOG_INSTANCE_AWARE_API_ENABLE
extern "C" void otPlatLogOutput(otInstance *aInstance, otLogLevel aLogLevel, const char *aLogLine)
extern "C" OT_TOOL_WEAK void otPlatLogOutput(otInstance *aInstance, otLogLevel aLogLevel, const char *aLogLine)
{
OT_UNUSED_VARIABLE(aInstance);
otPlatLog(aLogLevel, OT_LOG_REGION_CORE, "%s", aLogLine);