Class to enable simple logging to a Stream object with different log levels This enables embedding permanent error, warn, info, and debug messages in the software, with the user defining the log level at compile time if more diagnostics are required.
More...
#include <Logger.h>
Class to enable simple logging to a Stream object with different log levels This enables embedding permanent error, warn, info, and debug messages in the software, with the user defining the log level at compile time if more diagnostics are required.
◆ Logger()
Logger::Logger |
( |
Stream * |
outputStream | ) |
|
Constructor for the logger.
- Parameters
-
◆ getLogLevel()
Get the current log level.
- Returns
- LogLevel
◆ log()
void Logger::log |
( |
LogLevel |
logLevel, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
Log a message for the specified log level.
- Parameters
-
logLevel | Valid LogLevel |
format | Format to apply to the message |
◆ setLogLevel()
void Logger::setLogLevel |
( |
LogLevel |
logLevel | ) |
|
Set the log level.
- Parameters
-
◆ _currentLevel
◆ _outputStream
The documentation for this class was generated from the following files:
- /home/runner/work/EX-Display/EX-Display/Logger.h
- /home/runner/work/EX-Display/EX-Display/Logger.cpp