arduino-emulator
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
arduino::ArduinoLogger Class Reference

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

#include <ArduinoLogger.h>

Public Types

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

Public Member Functions

void begin (Stream &out, LogLevel level=Warning)
 
void debug (const char *str, const char *str1=nullptr, const char *str2=nullptr)
 
void error (const char *str, const char *str1=nullptr, const char *str2=nullptr)
 
void info (const char *str, const char *str1=nullptr, const char *str2=nullptr)
 
bool isLogging ()
 
void log (LogLevel current_level, const char *str, const char *str1=nullptr, const char *str2=nullptr)
 
void warning (const char *str, const char *str1=nullptr, const char *str2=nullptr)
 

Public Attributes

const charLogLevelTxt [4] = {"Debug", "Info", "Warning", "Error"}
 

Protected Attributes

LogLevel log_level = Warning
 
Streamlog_stream_ptr = &Serial
 

Detailed Description

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


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