38 const char *
const logFilePrefix,
39 const char *
const logFileSuffix,
40 const U32 maxFileSize,
44 m_file.init(logFilePrefix, logFileSuffix, maxFileSize, sizeOfSize);
58 const U8 *
const addr = fwBuffer.
getData();
59 const U32 size = fwBuffer.
getSize();
60 m_file.logBuffer(addr, size);
75 m_file.logBuffer(addr, size);
100 BL_OpenFile_cmdHandler(
106 m_file.setBaseName(file);
111 BL_CloseFile_cmdHandler(
116 m_file.closeAndEmitEvent();
121 BL_SetLogging_cmdHandler(
129 m_file.closeAndEmitEvent();
135 BL_FlushFile_cmdHandler(
140 const bool status = m_file.flush();
PlatformIntType NATIVE_INT_TYPE
uint8_t U8
8-bit unsigned integer
@ EXECUTION_ERROR
Command had execution error.
@ OK
Command successfully executed.
U8 * getBuffAddr()
gets buffer address for data filling
Serializable::SizeType getBuffLength() const
returns current buffer size
Auto-generated base for BufferLogger component.
void pingOut_out(FwIndexType portNum, U32 key)
Invoke output port pingOut.
void bufferSendOut_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port bufferSendOut.
void cmdResponse_out(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
Emit command response.
void initLog(const char *const logFilePrefix, const char *const logFileSuffix, const U32 maxFileSize, const U8 sizeOfSize)
Set up log file parameters.
BufferLogger(const char *const compName)
Create a BufferLogger object.
BufferLogger_LogState LogState