Files
airgradient/src/Main/PrintLog.cpp
T

62 lines
937 B
C++
Raw Normal View History

2024-04-03 11:40:46 +07:00
#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);
}