mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 21:26:43 +00:00
Remove obsolete log files
This commit is contained in:
parent
ebea5ea17e
commit
a08e163fad
@ -1,68 +0,0 @@
|
||||
/*
|
||||
#include "hasp_conf.h"
|
||||
#include <Arduino.h>
|
||||
#include "ArduinoLog.h"
|
||||
|
||||
#if defined(ARDUINO_ARCH_ESP8266)
|
||||
#include <ESP8266WiFi.h>
|
||||
#else
|
||||
#include <Wifi.h>
|
||||
#endif
|
||||
#include <WiFiUdp.h>
|
||||
|
||||
#if HASP_USE_SYSLOG != 0
|
||||
#include <Syslog.h>
|
||||
#endif
|
||||
|
||||
#include "hasp_log.h"
|
||||
#include "hasp_debug.h"
|
||||
|
||||
|
||||
void debugPrintln(String & debugText)
|
||||
{
|
||||
serialPrintln(debugText, LOG_LEVEL_NOTICE);
|
||||
|
||||
#if HASP_USE_SYSLOG != 0
|
||||
syslogSend(LOG_INFO, debugText.c_str());
|
||||
#endif
|
||||
}
|
||||
|
||||
void debugPrintln(const __FlashStringHelper * debugText)
|
||||
{
|
||||
String buffer((char *)0);
|
||||
buffer.reserve(128);
|
||||
buffer = debugText;
|
||||
debugPrintln(buffer);
|
||||
}
|
||||
|
||||
void debugPrintln(const char * debugText)
|
||||
{
|
||||
serialPrintln(debugText, LOG_LEVEL_NOTICE);
|
||||
|
||||
#if HASP_USE_SYSLOG != 0
|
||||
syslogSend(LOG_INFO, debugText);
|
||||
#endif
|
||||
}
|
||||
|
||||
void errorPrintln(String debugText)
|
||||
{
|
||||
char buffer[128];
|
||||
sprintf_P(buffer, debugText.c_str(), PSTR("[ERROR] "));
|
||||
serialPrintln(buffer, LOG_LEVEL_ERROR);
|
||||
|
||||
#if HASP_USE_SYSLOG != 0
|
||||
syslogSend(LOG_ERR, buffer);
|
||||
#endif
|
||||
}
|
||||
|
||||
void warningPrintln(String debugText)
|
||||
{
|
||||
char buffer[128];
|
||||
sprintf_P(buffer, debugText.c_str(), PSTR("[WARNING] "));
|
||||
serialPrintln(buffer, LOG_LEVEL_WARNING);
|
||||
|
||||
#if HASP_USE_SYSLOG != 0
|
||||
syslogSend(LOG_WARNING, buffer);
|
||||
#endif
|
||||
}
|
||||
*/
|
@ -1,13 +0,0 @@
|
||||
/*
|
||||
#ifndef HASP_LOG_H
|
||||
#define HASP_LOG_H
|
||||
|
||||
void debugPrintln(String & debugText);
|
||||
void debugPrintln(const __FlashStringHelper * debugText);
|
||||
void debugPrintln(const char * debugText);
|
||||
|
||||
void errorPrintln(String debugText);
|
||||
void warningPrintln(String debugText);
|
||||
|
||||
#endif
|
||||
*/
|
Loading…
x
Reference in New Issue
Block a user