mirror of
https://github.com/espressif/openthread.git
synced 2026-08-07 19:27:46 +00:00
[log] implement new logging model with module name support (#7385)
This commit implements new logging model in OpenThread. Each core module can specify its own module name using `RegisterLogModule()`. The registered log module name is then included in the all the log messages emitted from the specific file. This model replaces and enhances the log region model.
This commit is contained in:
@@ -678,7 +678,7 @@ class NodeImpl:
|
||||
return lines
|
||||
|
||||
def __is_logging_line(self, line: str) -> bool:
|
||||
return len(line) >= 6 and line[:6] in {'[DEBG]', '[INFO]', '[NOTE]', '[WARN]', '[CRIT]', '[NONE]'}
|
||||
return len(line) >= 3 and line[:3] in {'[D]', '[I]', '[N]', '[W]', '[C]', '[-]'}
|
||||
|
||||
def read_cert_messages_in_commissioning_log(self, timeout=-1):
|
||||
"""Get the log of the traffic after DTLS handshake.
|
||||
|
||||
Reference in New Issue
Block a user