syslogqnxsystemd-journald

QNX Slogger2 Vs Syslog


What is the difference between Slogger2 (System Logger) and Linux based syslog?

I understand the difference between journald and syslog. Slogger2 also gives a way to redirect syslog messages to slogger2.

Is it QNX's version of syslog as it deals with palin text files? Does Does it also uses logrotate like tool to handle file size?


Solution

  • slogger2 (and its predecessor slogger) provide a low-latency in-memory log system. slogger2 is closer conceptually to the Linux kernel log service (eg. slog2f() is approximately equivalent to printk()), but runs as a user-space daemon independent of the kernel as QNX uses a microkernel architecture.

    Like the Linux kernel log, slogger2 does not write messages to disk by itself; if you want to store messages in a file, you are required to run another process to manage that (ie. slog2info is analogous to klogd). It is possible to route syslog into slogger2, to have a single source of message traffic; it is also possible to route slogger2 to syslog, to leverage syslogd's better tools for writing files to disk.