Files
arduino/src/Main/PrintLog.h

25 lines
417 B
C
Raw Normal View History

2024-04-03 11:40:46 +07:00
#ifndef _PRINT_LOG_H_
#define _PRINT_LOG_H_
#include <Arduino.h>
class PrintLog
{
private:
Stream &log;
String tag;
public:
PrintLog(Stream &log, String tag);
~PrintLog();
void logInfo(String info);
2024-04-03 11:40:46 +07:00
void logInfo(const char* info);
void logError(String err);
2024-04-03 11:40:46 +07:00
void logError(const char* err);
void logWarning(String warning);
2024-04-03 11:40:46 +07:00
void logWarning(const char* warning);
};
#endif /** _PRINT_LOG_H_ */