Info about logger implementation

Hi everyone,

I need to use a logger for my program (linux init system).
I saw there are many implementations and I'm a bit confused
about the best choice for this case.
Basically, I need the following three features:

  • log to stdout/stderr
  • log to file
  • system log

Please note, this is an init system thus, initially, the disk is not mounted.
That means that I only can log to stout/stderr and system log and after, when the disk is mounted, to a file as well.

Any advice?
Thanks in advance.

Sorry, maybe i don't explain well.
I'm writing a linux init system like systemd.
Actually, it is already written but in c language and I'd like rewrite it in Rust. It's a systemd alternative.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.