Enable CLI logging (#670)

* enable uart logging
This commit is contained in:
Buke Po
2016-09-23 20:43:49 -07:00
committed by Jonathan Hui
parent 8d6923fe8b
commit 3452933fc5
5 changed files with 180 additions and 1 deletions
+14
View File
@@ -36,6 +36,7 @@
#define CLI_UART_H_
#include <openthread-types.h>
#include <platform/logging.h>
#ifdef __cplusplus
extern "C" {
@@ -49,6 +50,19 @@ extern "C" {
*/
void otCliUartInit(otInstance *aInstance);
#if OPENTHREAD_ENABLE_CLI_LOGGING
/**
* This method delivers formatted log to the client.
*
* @param[in] aLogLevel The log level.
* @param[in] aLogRegion The log region.
* @param[in] aFormat A pointer to the format string.
* @param[in] ... Arguments for the format specification.
*
*/
void otCliLog(otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFormat, ...);
#endif
#ifdef __cplusplus
} // extern "C"
#endif