Skip to main content

Service logging

Logging provides the service log to AosCloud. In the current design, stdout is redirected to the systemd journal. The logging package parses the journal and provides a log filtered by service ID.

There are two types of requests:

  • A log for the requested period
  • A crash log – the last service run log between the service start and the service crash

It is important to prevent putting sensitive data into the systemd journal, as it may be used by other programs in an inappropriate way. We plan to provide a special API for service logging, in order to keep the service log in not readable format or intercept the service log and scramble it before putting it into the systemd journal. Currently, it is the service's responsibility to not put sensitive data into the log or scramble it.