Monitor for central heating system (e.g. 2zones+hw) Supports up to 15 temp probes (DS18B20/DS18S20) 3 valve monitors Gas pulse meter recording Use stand-alone or with nodeEnergyServer See http://robdobson.com/2015/09/central-heating-monitor
Dependencies: EthernetInterfacePlusHostname NTPClient Onewire RdWebServer SDFileSystem-RTOS mbed-rtos mbed-src
Diff: Logger.h
- Revision:
- 20:7933076df5af
- Parent:
- 12:a52996515063
--- a/Logger.h Mon Oct 05 14:05:33 2015 +0000 +++ b/Logger.h Tue Oct 13 18:35:20 2015 +0000 @@ -5,17 +5,27 @@ #define __LOGGER__H #include "mbed.h" #include <stdarg.h> +#include "rtos.h" class Logger { public: - Logger(const char* eventLogFileName, const char* dataLogFileBase); + Logger(const char* eventLogFileName, const char* dataLogFileBase, Mutex &sdCardMutex); void LogEvent(const char* format, ...); void LogData(const char* format, ...); + void LogDebug(const char* format, ...); + void SetDebugDest(bool logToFile, bool logToConsole) + { + _logDebugToFile = logToFile; + _logDebugToConsole = logToConsole; + }; private: const char* _eventLogFileName; const char* _dataLogFileBase; + bool _logDebugToFile; + bool _logDebugToConsole; + Mutex &_sdCardMutex; };