Pico-Arduino
Public Types | Public Member Functions | Protected Attributes | List of all members
PicoLogger Class Reference

A simple Logger that writes messages dependent on the log level. More...

#include <PicoLogger.h>

Public Types

enum  LogLevel { Debug , Info , Warning , Error }
 Supported log levels.
 

Public Member Functions

virtual void begin (Stream &out, LogLevel level=Error)
 
virtual bool isLogging (LogLevel level=Info)
 
virtual void error (const char *str, const char *str1=nullptr, const char *str2=nullptr)
 
virtual void info (const char *str, const char *str1=nullptr, const char *str2=nullptr)
 
virtual void warning (const char *str, const char *str1=nullptr, const char *str2=nullptr)
 
virtual void debug (const char *str, const char *str1=nullptr, const char *str2=nullptr)
 
virtual void log (LogLevel current_level, const char *str, const char *str1=nullptr, const char *str2=nullptr)
 
const char * toStr (int value)
 

Protected Attributes

Streamlog_stream_ptr
 
LogLevel log_level
 

Detailed Description

A simple Logger that writes messages dependent on the log level.

Author
Phil Schatzmann

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