|
LoboMQ
|
#include <iostream>#include <SD.h>#include <SPI.h>#include <Elog.h>Go to the source code of this file.
Macros | |
| #define | DEFAULT_LOG_LEVEL Loglevel::INFO |
Enumerations | |
| enum | LoggerClass { BROKER = 0 , PUBLISHER , SUBSCRIBER , UNKNOWN } |
| Enumerates every log class that represents the part of the library which is being logged. More... | |
Functions | |
| Elog * | initializeSerialLogger (LoggerClass className, Loglevel level=DEFAULT_LOG_LEVEL) |
| Creates a logger that prints messages to the serial monitor. | |
| Elog * | initializeSDLogger (LoggerClass className, int cs, int sck, int miso, int mosi, Loglevel level=DEFAULT_LOG_LEVEL) |
| Creates a logger that prints messages to a file inside a SD card. | |
| Elog * | disableLogger () |
| Creates a logger without the ability to print messages. | |
This file contains the necessary definitions and declarations to easily create an Elog logger object for LoboMQ.
Definition in file Logger.h.
| enum LoggerClass |
| Elog * disableLogger | ( | ) |
Creates a logger without the ability to print messages.
This function creates a logger used by the broker or client which will not print any message produced by the library.
Definition at line 52 of file Logger.cpp.
| Elog * initializeSDLogger | ( | LoggerClass | className, |
| int | cs, | ||
| int | sck, | ||
| int | miso, | ||
| int | mosi, | ||
| Loglevel | level = DEFAULT_LOG_LEVEL ) |
Creates a logger that prints messages to a file inside a SD card.
This function creates a logger used by the broker or client which prints messages to a file in the SD card as most critical as the indicated.
| className | The log class. |
| cs | The Chip Select pin of the SD card module. |
| sck | The Serial Clock pin of the SD card module. |
| miso | The Master In Slave Out pin of the SD card module. |
| mosi | The Master Out Slave In pin of the SD card module. |
| level | The most critical level of registration in which there is interest. |
Definition at line 34 of file Logger.cpp.
| Elog * initializeSerialLogger | ( | LoggerClass | className, |
| Loglevel | level = DEFAULT_LOG_LEVEL ) |
Creates a logger that prints messages to the serial monitor.
This function creates a logger used by the broker or client which prints messages to the serial monitor as most critical as the indicated.
| className | The log class. |
| level | The most critical level of registration in which there is interest. |
Definition at line 13 of file Logger.cpp.