forked from airgradienthq/arduino
[temporary commit]
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
#include "PrintLog.h"
|
||||
|
||||
/**
|
||||
* @brief Print log info
|
||||
*
|
||||
* @param info Log message
|
||||
*/
|
||||
void PrintLog::logInfo(String &info)
|
||||
{
|
||||
logInfo(info.c_str());
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Print log info
|
||||
*
|
||||
* @param info Log message
|
||||
*/
|
||||
void PrintLog::logInfo(const char *info)
|
||||
{
|
||||
log.printf("[%s] Info: %s\r\n", tag.c_str(), info);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Print log error
|
||||
*
|
||||
* @param err Log message
|
||||
*/
|
||||
void PrintLog::logError(String &err)
|
||||
{
|
||||
logError(err.c_str());
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Print log error
|
||||
*
|
||||
* @param err Log message
|
||||
*/
|
||||
void PrintLog::logError(const char *err)
|
||||
{
|
||||
log.printf("[%s] Error: %s\r\n", tag.c_str(), err);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Print log warning
|
||||
*
|
||||
* @param warning Log message
|
||||
*/
|
||||
void PrintLog::logWarning(String &warning)
|
||||
{
|
||||
logWarning(warning.c_str());
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Print log warning
|
||||
*
|
||||
* @param warning Log message
|
||||
*/
|
||||
void PrintLog::logWarning(const char *warning)
|
||||
{
|
||||
log.printf("[%s] Warning: %s\r\n", tag.c_str(), warning);
|
||||
}
|
||||
Reference in New Issue
Block a user