33 void ActiveTextLogger::TextLogger_handler(
FwIndexType portNum,
48 const char *severityString =
"UNKNOWN";
51 severityString =
"FATAL";
54 severityString =
"WARNING_HI";
57 severityString =
"WARNING_LO";
60 severityString =
"COMMAND";
63 severityString =
"ACTIVITY_HI";
66 severityString =
"ACTIVITY_LO";
69 severityString =
"DIAGNOSTIC";
72 severityString =
"SEVERITY ERROR";
79 severityString, text.
toChar());
109 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