8 #define DLNA_MAX_LOG_SIZE 800
18 static const char* HttpDlnaLogLevelStr[] = {
"Debug",
"Info",
"Warning",
"Error"};
44 strcpy(log_buffer,
"DLNA - ");
45 strcat(log_buffer, HttpDlnaLogLevelStr[current_level]);
46 strcat(log_buffer,
": ");
#define DLNA_MAX_LOG_SIZE
Definition: Logger.h:8
Logger that writes messages dependent on the log level.
Definition: Logger.h:25
DlnaLogLevel log_level
Definition: Logger.h:57
virtual void begin(Print &out, DlnaLogLevel level=DlnaError)
Definition: Logger.h:29
Print * log_stream_ptr
Definition: Logger.h:56
void log(DlnaLogLevel current_level, const char *fmt...)
Print log message.
Definition: Logger.h:40
void setLevel(DlnaLogLevel l)
Definition: Logger.h:34
virtual bool isLogging()
Definition: Logger.h:37
Definition: Allocator.h:6
DlnaLogLevel
Supported log levels.
Definition: Logger.h:16
@ DlnaDebug
Definition: Logger.h:16
@ DlnaInfo
Definition: Logger.h:16
@ DlnaWarning
Definition: Logger.h:16
@ DlnaError
Definition: Logger.h:16
LoggerClass DlnaLogger
Definition: Logger.cpp:5