25 void ActiveTextLogger::TextLogger_handler(
FwIndexType portNum,
38 const char* severityString =
nullptr;
41 severityString =
"FATAL";
44 severityString =
"WARNING_HI";
47 severityString =
"WARNING_LO";
50 severityString =
"COMMAND";
53 severityString =
"ACTIVITY_HI";
56 severityString =
"ACTIVITY_LO";
59 severityString =
"DIAGNOSTIC";
62 severityString =
"SEVERITY ERROR";
96 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.
static void log(const char *format,...)
log a formated string with supplied arguments
TimeBase getTimeBase() const
const char * toChar() const
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.
SizeType length() const
Get length of string.
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.
void TextQueue_internalInterfaceInvoke(const Fw::InternalInterfaceString &text)
Internal interface base-class function for TextQueue.
const char * toChar() const