From 562a3d8c73981469fcaaf58db1a0d19a4486d398 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Wed, 13 Aug 2025 10:38:19 -0700 Subject: [PATCH] [cli] document mdns `verboselogging` command (#11809) This commit adds documentation for the new `mdns verboselogging` CLI command. --- src/cli/README_MDNS.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/cli/README_MDNS.md b/src/cli/README_MDNS.md index 828e6f08a..6ca31669f 100644 --- a/src/cli/README_MDNS.md +++ b/src/cli/README_MDNS.md @@ -116,6 +116,7 @@ mDNS IPv6 address result for test-host - [txtresolvers](#txtresolvers) - [unicastquestion](#unicastquestion) - [unregister](#unregister) +- [verboselogging](#verboselogging) ## Command Details @@ -654,3 +655,26 @@ Done > mdns unregister key my-inst _test._udp Done ``` + +### verboselogging + +Usage: `mdns verboselogging [enable|disable]` + +Requires `OPENTHREAD_CONFIG_MULTICAST_DNS_VERBOSE_LOGGING_ENABLE`. + +Enables or disables verbose logging for the mDNS module at run-time. + +When enabled, the mDNS module emits verbose logs for every sent or received mDNS message, including the header and all question and resource records. These logs are generated regardless of the current log level configured on the device. + +This feature can generate a large volume of logs, so its use is recommended only during development, integration, or debugging. + +The initial state of verbose logging (enabled or disabled at startup) is determined by the configuration `OPENTHREAD_CONFIG_MULTICAST_DEFAULT_DNS_VERBOSE_LOGGING_STATE`. + +```bash +> mdns verboselogging enable +Done + +> mdns verboselogging +Enabled +Done +```