Arduino DLNA Server
Public Member Functions | Protected Attributes | List of all members
tiny_dlna::LoggerClass Class Reference

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

#include <Logger.h>

Public Member Functions

virtual void begin (Print &out, DlnaLogLevel level=DlnaError)
 
void setLevel (DlnaLogLevel l)
 
virtual bool isLogging ()
 
void log (DlnaLogLevel current_level, const char *fmt...)
 Print log message. More...
 

Protected Attributes

Print * log_stream_ptr = &Serial
 
DlnaLogLevel log_level = DlnaWarning
 

Detailed Description

Logger that writes messages dependent on the log level.

Member Function Documentation

◆ begin()

virtual void tiny_dlna::LoggerClass::begin ( Print &  out,
DlnaLogLevel  level = DlnaError 
)
inlinevirtual

◆ isLogging()

virtual bool tiny_dlna::LoggerClass::isLogging ( )
inlinevirtual

◆ log()

void tiny_dlna::LoggerClass::log ( DlnaLogLevel  current_level,
const char *  fmt... 
)
inline

Print log message.

◆ setLevel()

void tiny_dlna::LoggerClass::setLevel ( DlnaLogLevel  l)
inline

Member Data Documentation

◆ log_level

DlnaLogLevel tiny_dlna::LoggerClass::log_level = DlnaWarning
protected

◆ log_stream_ptr

Print* tiny_dlna::LoggerClass::log_stream_ptr = &Serial
protected

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