mirror of
https://github.com/espressif/openthread.git
synced 2026-08-01 16:47:47 +00:00
[posix] set compile-time minimum log level to debug (#6905)
The compile-time log level definition is the lowest log level that can be set by `otLoggingSetLevel`. This is useful for dumping more logs for testing.
This commit is contained in:
@@ -64,6 +64,27 @@
|
||||
#define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_PLATFORM_DEFINED
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def OPENTHREAD_CONFIG_LOG_LEVEL
|
||||
*
|
||||
* Define the compile-time log level which is the lowest log level
|
||||
* that can be set at run-time by `otLoggingSetLevel`.
|
||||
*
|
||||
*/
|
||||
#ifndef OPENTHREAD_CONFIG_LOG_LEVEL
|
||||
#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def OPENTHREAD_CONFIG_LOG_LEVEL_INIT
|
||||
*
|
||||
* The initial log level used when OpenThread is initialized. See
|
||||
* `OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE`.
|
||||
*/
|
||||
#ifndef OPENTHREAD_CONFIG_LOG_LEVEL_INIT
|
||||
#define OPENTHREAD_CONFIG_LOG_LEVEL_INIT OT_LOG_LEVEL_CRIT
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user