mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-15 08:56:34 +02:00
25 lines
417 B
C++
25 lines
417 B
C++
#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);
|
|
void logInfo(const char* info);
|
|
void logError(String err);
|
|
void logError(const char* err);
|
|
void logWarning(String warning);
|
|
void logWarning(const char* warning);
|
|
};
|
|
|
|
#endif /** _PRINT_LOG_H_ */
|