[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Best practice to allow a program to write its logs



On Sun, Feb 23, 2020 at 05:31:21PM +0100, l0f4r0@tuta.io wrote:
What is the best practice please to allow a program to write its logs into my home folder?

In the near future (systemd ≥ 245), using journald's "Journal
namespaces" feature to run an isolated journald instance, logging to a
file in your $HOME, then running the programs you want to collect log
output from under systemd as user units (systemd --user…), configured to
use that journal namespace, and (where possible) configured to log to
their STDOUT or STDERR file handles:

https://www.freedesktop.org/software/systemd/man/systemd-journald.service.html#Journal%20Namespaces

It'll be quite some time before this version of systemd/journalctl is
available in a stable Debian release, however.

--
Jonathan Dowland


Reply to: