nasa / cFE

The Core Flight System (cFS) Core Flight Executive (cFE)
Apache License 2.0
409 stars 202 forks source link

Improve/clarify log reporting/tracking (ES System Log and EVS Event Log) #1400

Open skliper opened 3 years ago

skliper commented 3 years ago

Is your feature request related to a problem? Please describe. EVS event logging reports LogFullFlag, LogMode, and LogOverflowCounter.

ES syslog reports SysLogBytesUsed, SysLogSize, SysLogEntries, and SysLogMode.

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

skliper commented 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

skliper commented 3 years ago

@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.