AlbertaSat / ex3_documentation

All things documentation relating to software for the Ex3 mission, as well as generic flight software or linux concepts
2 stars 1 forks source link

Explore Linux system logging and how we will store and handle Linux system logs on the OBC, as well as how we plan on accessing them from the GS. #11

Open dheadrick1618 opened 9 months ago

dheadrick1618 commented 9 months ago

Description

Task is to get logging working on the FSW. Need to determine how the system should log, and how this could be accessed by the ground station.

Deliverables

Research

Typical Linux use case

Embedded readings

printf is expensive, so logging should maybe be deferred.

The thing is, we are working with Linux, so we should be able to leverage the socket design paradigm to let the operating system do the scheduling work for us.

Figures

Value Severity Keyword
0 Emergency emerg
1 Alert alert
2 Critical crit
3 Error err
4 Warning warning
5 Notice notice
6 Informational info
7 Debug debug

The table above is the list of priorities in the syslog standard.

Resources

dheadrick1618 commented 9 months ago

Great work! I think we should include the definition of each log severity for clarification, such as: image

I think the next step is to make a small working example / demonstration program that scrapes various logs and consolidates them, so a simple GS command can request all this log info in a simple manner. Thoughts?

waridh commented 9 months ago

Yeah, I agree. But I have one question. Should we try to reuse syslog before moving to making a custom implementation of the log server process?