mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-16 02:02:11 +02:00
25 lines
420 B
C
25 lines
420 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_ */
|