Logging #12

Closed
opened 2022-08-29 10:26:38 +02:00 by muellerr · 1 comment
Owner

The logger is a central components in my opinion. The first step would be to look for good logging frameworks. Maybe make it possible to easily swap the loggers. fern and defmt look very promissing.

Ideally, it should be possible to reroute logging output to file only. This makes it possible to use logging output even if a mission has already launched and the console is unavailable. Maybe something like a log dispatcher which takes a formatted string and sends it to whatever log mechanism the user implements (which can also include file logging)

  • Look into a log dispatcher implementation
  • Check loggers like fern or defmt and the viability of using them in the log dispatcher

Some additional research:

There seem to be three major logging frameworks

  • slog
  • fern
  • log4rs

It would be interesting to check which ones are best suited for larger systems with a full runtime.

The logger is a central components in my opinion. The first step would be to look for good logging frameworks. Maybe make it possible to easily swap the loggers. [fern](https://docs.rs/fern/latest/fern/) and [defmt](https://github.com/knurling-rs/defmt) look very promissing. Ideally, it should be possible to reroute logging output to file only. This makes it possible to use logging output even if a mission has already launched and the console is unavailable. Maybe something like a log dispatcher which takes a formatted string and sends it to whatever log mechanism the user implements (which can also include file logging) - [ ] Look into a log dispatcher implementation - [ ] Check loggers like fern or defmt and the viability of using them in the log dispatcher Some additional research: There seem to be three major logging frameworks - [ ] slog - [ ] fern - [ ] log4rs It would be interesting to check which ones are best suited for larger systems with a full runtime.
muellerr added the
concepts
label 2022-08-29 10:28:46 +02:00
muellerr added this to the satrs v0.1.0 milestone 2022-08-29 10:30:31 +02:00
Author
Owner

It looks like the framework will just use the regular logging facade. defmt is too specific for embedded systems.

It looks like the framework will just use the regular logging facade. `defmt` is too specific for embedded systems.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: rust/sat-rs#12
No description provided.