|
Arduino TinyFTP
|
FTPLoggerClass To activate logging start the FTPLogger object with the output stream and (optionally) the log level e.g. with FTPLogger.begin(Serial, LOG_INFO);. More...
#include <FTPLogger.h>
Public Member Functions | |
| FTPLoggerClass (const FTPLoggerClass &)=delete | |
| FTPLoggerClass & | operator= (const FTPLoggerClass &)=delete |
| void | begin (Stream &out, FTPLogLevel level=LOG_ERROR) |
| Starts the logging to the indicated output. | |
| void | setLogLevel (FTPLogLevel level) |
| FTPLogLevel | getLogLevel () |
| void | setOutput (Stream &out) |
| void | writeLog (FTPLogLevel level, const char *module, const char *msg=nullptr) |
Static Public Member Functions | |
| static FTPLoggerClass & | instance () |
| Provides the single instance which is available as FTPLogger. | |
Protected Attributes | |
| FTPLogLevel | min_log_level = LOG_ERROR |
| Stream * | out_ptr = nullptr |
FTPLoggerClass To activate logging start the FTPLogger object with the output stream and (optionally) the log level e.g. with FTPLogger.begin(Serial, LOG_INFO);.