[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:
kangping
2021-08-10 18:24:20 -07:00
committed by GitHub
parent c252ba6ed2
commit 37b3d9f628
@@ -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
*