13 "ACTIVE_TEXT_LOGGER_ID_FILTER_SIZE must fit within range of FwSizeType");
28 this->m_numFilteredIDs = count;
29 for (
FwSizeType entry = 0; entry < count; entry++) {
30 this->m_filteredIDs[entry] = filteredIds[entry];
38 void ActiveTextLogger::TextLogger_handler(
FwIndexType portNum,
49 for (
FwSizeType i = 0; i < this->m_numFilteredIDs; i++) {
50 if (this->m_filteredIDs[i] ==
id) {
57 const char* severityString =
nullptr;
60 severityString =
"FATAL";
63 severityString =
"WARNING_HI";
66 severityString =
"WARNING_LO";
69 severityString =
"COMMAND";
72 severityString =
"ACTIVITY_HI";
75 severityString =
"ACTIVITY_LO";
78 severityString =
"DIAGNOSTIC";
81 severityString =
"SEVERITY ERROR";
115 return this->m_log_file.
set_log_file(fileName, maxSize, maxBackups);
bool write_to_log(const char *const buf, const FwSizeType size)
Write the passed buf to the log if possible.
void configure(const FwEventIdType *filteredIds, FwSizeType count)
Configure component with event ID filters.
PlatformSizeType FwSizeType
static void log(const char *format,...)
log a formated string with supplied arguments
TimeBase getTimeBase() const
const char * toChar() const
Convert to a C-style char*.
ActiveTextLogger(const char *compName)
Component constructor.
Software diagnostic events.
#define PRI_FwEventIdType
FwIdType FwEventIdType
The type of an event identifier.
Less important informational events.
An activity related to commanding.
A less serious but recoverable event.
A serious but recoverable event.
virtual ~ActiveTextLogger()
Component destructor.
bool set_log_file(const char *fileName, const FwSizeType maxSize, const FwSizeType maxBackups=10)
Set log file and max size.
Enum representing event severity.
Auto-generated base for ActiveTextLogger component.
#define PRI_FwTimeBaseStoreType
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
Important informational events.
PlatformIndexType FwIndexType
bool set_log_file(const char *fileName, const U32 maxSize, const U32 maxBackups=10)
Set log file and max size.
A fatal non-recoverable event.
RateGroupDivider component implementation.
virtual SizeType length() const
Get the length of the string.
void TextQueue_internalInterfaceInvoke(const Fw::InternalInterfaceString &text)
Internal interface base-class function for TextQueue.
const char * toChar() const
Convert to a C-style char*.