Arduino TinyFTP
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
tinyftp::FTPLoggerClass Class Reference

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
 

Detailed Description

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);.

Author
Phil Schatzmann

The documentation for this class was generated from the following file: