- initial commit
git-svn-id: http://moon:8086/svn/software/trunk/projects/mpsk_rx_gui@2 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user