Open skliper opened 3 years ago
@dmknutsen @olamoo13 - looks like there's a couple options to knowing when the system log is full based on the current implementation In either case:
In discard mode:
EDIT - this had some incorrect descriptions, fixed
@dmknutsen @olamoo13 - if you wanted to get really fancy, the test app could subscribe to the ES housekeeping and do the math for you. Basically add a command to "fill the log", and it could continue creating syslog messages until the hk packet values show it's full. That would move the logic into the app. I'm not a huge fan of this approach (test app should be as simple as possible), but it's a way to get it done for now.
Is your feature request related to a problem? Please describe. EVS event logging reports
LogFullFlag
,LogMode
, andLogOverflowCounter
.CFE_EVS_LongEventTlm_t
of sizeCFE_PLATFORM_EVS_LOG_MAX
so each entry has a slotLogFullFlag
is set to true, andLogOverflowCounter
is incremented for each additional message (so you can tell how many messages were dropped or added after being full).LogCount
is maintained internally but is not in tlm (counts number of entries in the log, clamps at max)ES syslog reports
SysLogBytesUsed
,SysLogSize
,SysLogEntries
, andSysLogMode
.SystemLog
of sizeCFE_PLATFORM_ES_SYSTEM_LOG_SIZE
CFE_PLATFORM_ES_SYSTEM_LOG_SIZE
-SysLogBytesUsed
is less thanCFE_TIME_PRINTED_STRING_SIZE
SysLogBytesUsed
is set to the internalSystemLogEndIdx
which is the highest used element of the char arraySysLogEntries
increments whenever a message is written, so if in overwrite it's not actually the number of entries in the log but the number of entries that have ever been written to the logCFE_ES_ERR_SYS_LOG_TRUNCATED
andCFE_ES_ERR_SYS_LOG_FULL
), but they are only returned in discard mode, and not available in tlmSysLogSize
is the full size of the log,CFE_PLATFORM_ES_SYSTEM_LOG_SIZE
Describe the solution you'd like Numerous misnomers and inconsistencies in log management should be fixed/clarified, within the context of the actual differences in these logs (char array vs event array).
Describe alternatives you've considered None
Additional context Code review
Requester Info Jacob Hageman - NASA/GSFC
ping @dmknutsen @olamoo13