LoboMQ
|
#include "Logger.h"
Go to the source code of this file.
Functions | |
Elog * | initializeSerialLogger (LoggerClass className, Loglevel 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) |
Creates a logger that prints messages to a file inside a SD card. | |
Elog * | disableLogger () |
Creates a logger without the ability to print messages. | |
Variables | |
SPIClass | spi_logger = SPIClass(VSPI) |
This file contains the necessary logic to easily create an Elog logger object for LoboMQ.
Definition in file Logger.cpp.
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.
SPIClass spi_logger = SPIClass(VSPI) |
Definition at line 11 of file Logger.cpp.