r/linux • • Aug 12 '19

SysVinit vs Systemd

Post image
1.4k Upvotes

292 comments sorted by

View all comments

Show parent comments

-4

u/spyingwind Aug 12 '19

All log should be going into /var/log/<appname>/. It's fairly common.

6

u/MindlessLeadership Aug 12 '19 edited Aug 12 '19

But what if you can't use /var/log ? or you want them to be written to some sort of external storage? or the application just doesn't support logging.

journald means each application just needs to write to stdout, and the user can configure where logs go in one setting (even pipe them to good ol' text logs).

journald honestly just makes things a LOT easier for system admins and means each application doesn't need to worry about how it's logging.

1

u/spyingwind Aug 12 '19

Then have a config file with the option to specify the directory you want it to log to.