mirror of
https://github.com/nasa/fprime.git
synced 2025-12-14 21:41:13 -06:00
* lestarch: stripping out FW_OBJECT_NAMES from Autocoder tests * lestarch: scrubbing FW_OBJECT_NAMES from templates * lestarch: scrubbing FW_OBJECT_NAMES from templates dir * lestarch: fixing polytype toString usage * lestarch: fixing more FW_OBJECT_NAMES
27 lines
689 B
C++
27 lines
689 B
C++
/*
|
|
* TestCommand1Impl.cpp
|
|
*
|
|
* Created on: Mar 28, 2014
|
|
* Author: tcanham
|
|
*/
|
|
|
|
#include <Autocoders/Python/test/log_tester/TestTextLogImpl.hpp>
|
|
#include <cstdio>
|
|
|
|
LogTextImpl::LogTextImpl(const char* name) : Log::LogTesterComponentBase(name)
|
|
{
|
|
}
|
|
|
|
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());
|
|
}
|
|
|
|
|