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";
 
   86             if (localtime_r(&t, &tm) == 
nullptr) {
 
   90             (void) snprintf(textStr,
 
   92                             "EVENT: (%" PRI_FwEventIdType ") (%04d-%02d-%02dT%02d:%02d:%02d.%06" PRIu32 
") %s: %s\n",
 
   93                             id, tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, tm.tm_hour,
 
   95                             severityString,text.
toChar());
 
   99             (void) snprintf(textStr,
 
  134         return this->m_log_file.
set_log_file(fileName, maxSize, maxBackups);
 
PlatformIntType NATIVE_INT_TYPE
 
@ TB_WORKSTATION_TIME
Time as reported on workstation where software is running. For testing.
 
#define PRI_FwEventIdType
 
#define PRI_FwTimeBaseStoreType
 
#define FW_INTERNAL_INTERFACE_STRING_MAX_SIZE
Max size of interface string parameter type.
 
const char * toChar() const
 
Enum representing event severity.
 
@ WARNING_HI
A serious but recoverable event.
 
@ ACTIVITY_HI
Important informational events.
 
@ FATAL
A fatal non-recoverable event.
 
@ WARNING_LO
A less serious but recoverable event.
 
@ DIAGNOSTIC
Software diagnostic events.
 
@ ACTIVITY_LO
Less important informational events.
 
@ COMMAND
An activity related to commanding.
 
static void log(const char *format,...)
log a formated string with supplied arguments
 
SizeType length() const
Get length of string.
 
const char * toChar() const
 
TimeBase getTimeBase() const
 
Auto-generated base for ActiveTextLogger component.
 
void TextQueue_internalInterfaceInvoke(const Fw::InternalInterfaceString &text)
Internal interface base-class function for TextQueue.
 
ActiveTextLogger(const char *compName)
Component constructor.
 
virtual ~ActiveTextLogger()
Component destructor.
 
bool set_log_file(const char *fileName, const U32 maxSize, const U32 maxBackups=10)
Set log file and max size.
 
bool set_log_file(const char *fileName, const U32 maxSize, const U32 maxBackups=10)
Set log file and max size.
 
bool write_to_log(const char *const buf, const U32 size)
Write the passed buf to the log if possible.