git-svn-id: http://moon:8086/svn/software/trunk/projects/mpsk_rx_gui@2 b431acfa-c32f-4a4a-93f1-934dc6c82436
25 lines
463 B
C++
25 lines
463 B
C++
#include "LogComponent.h"
|
|
#include <cstdio>
|
|
#include <cstdarg>
|
|
|
|
LogComponent::LogComponent(LogHandler *pLogHandler)
|
|
: m_pLogHandler(pLogHandler)
|
|
{
|
|
}
|
|
|
|
LogComponent::~LogComponent(void)
|
|
{
|
|
}
|
|
|
|
void LogComponent::log(const char* format, ...)
|
|
{
|
|
char log_buf[257];
|
|
String s;
|
|
va_list argptr;
|
|
va_start(argptr, format);
|
|
vsprintf(log_buf, format, argptr);
|
|
va_end(argptr);
|
|
s = String(log_buf);
|
|
// m_pLogHandler->handleMessage(s);
|
|
}
|