Logging Infrastructure

From WebOS-Ports
Revision as of 19:32, 7 June 2020 by Tofe (talk | contribs) (Initial page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Logging Infrastructure in LuneOS

There are two main pieces in the logging infrastructure: journald and PmLogDaemon.

Here is a schema explaining how they interact with each other:

File:Syslog with journald.svg
jounarld and PmLogDaemon

In other words, the logging works in this order:

1. journald aggregates all the messages in its journal: syslog, services output, kernel messages...
2. journald outputs the consolidated journal to a dedicated socket (when available)
3. PmLogDaemon creates that socket and produces its own file-based log output