mirror of
https://github.com/nasa/fprime.git
synced 2025-12-14 04:20:08 -06:00
32 lines
795 B
C++
32 lines
795 B
C++
/*
|
|
* TestCommand1Impl.cpp
|
|
*
|
|
* Created on: Mar 28, 2014
|
|
* Author: tcanham
|
|
*/
|
|
|
|
#include <Autocoders/Python/test/log_tester/TestTextLogImpl.hpp>
|
|
#include <stdio.h>
|
|
|
|
#if FW_OBJECT_NAMES == 1
|
|
LogTextImpl::LogTextImpl(const char* name) : Log::LogTesterComponentBase(name)
|
|
#else
|
|
LogTextImpl::LogTextImpl() :
|
|
Log::LogTesterComponentBase()
|
|
#endif
|
|
{
|
|
}
|
|
|
|
LogTextImpl::~LogTextImpl() {
|
|
}
|
|
|
|
void LogTextImpl::init() {
|
|
Log::LogTesterComponentBase::init();
|
|
}
|
|
|
|
void LogTextImpl::textLogRecvPort_handler(NATIVE_INT_TYPE portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::TextLogString &text) {
|
|
printf("Log id %d, time (%d,%d:%d), severity %d, text \"%s\"",id,timeTag.getTimeBase(),timeTag.getSeconds(),timeTag.getUSeconds(),severity.e,text.toChar());
|
|
}
|
|
|
|
|