23 BufferLoggerComponentBase(compName),
36 BufferLoggerComponentBase::init(queueDepth, instance);
46 const char *
const logFilePrefix,
47 const char *
const logFileSuffix,
48 const U32 maxFileSize,
52 m_file.init(logFilePrefix, logFileSuffix, maxFileSize, sizeOfSize);
65 if (m_state == LOGGING_ON) {
66 const U8 *
const addr = fwBuffer.
getData();
67 const U32 size = fwBuffer.
getSize();
68 m_file.logBuffer(addr, size);
70 this->bufferSendOut_out(0, fwBuffer);
80 if (m_state == LOGGING_ON) {
83 m_file.logBuffer(addr, size);
90 this->pingOut_out(0, key);
108 BL_OpenFile_cmdHandler(
114 m_file.setBaseName(file);
115 this->cmdResponse_out(opCode, cmdSeq, Fw::COMMAND_OK);
119 BL_CloseFile_cmdHandler(
124 m_file.closeAndEmitEvent();
125 this->cmdResponse_out(opCode, cmdSeq, Fw::COMMAND_OK);
129 BL_SetLogging_cmdHandler(
136 if (state == LOGGING_OFF) {
137 m_file.closeAndEmitEvent();
139 this->cmdResponse_out(opCode, cmdSeq, Fw::COMMAND_OK);
143 BL_FlushFile_cmdHandler(
148 const bool status = m_file.flush();
151 this->cmdResponse_out(opCode, cmdSeq, Fw::COMMAND_OK);
155 this->cmdResponse_out(opCode, cmdSeq, Fw::COMMAND_EXECUTION_ERROR);