I would like logging.info()
to go to journald (systemd).
Up to now I only found python modules which read journald (not what I want) or modules which work like this: journal.send('Hello world')
I would like logging.info()
to go to journald (systemd).
Up to now I only found python modules which read journald (not what I want) or modules which work like this: journal.send('Hello world')
An alternative to the official package, the systemd package works with python 3.6. Its source is also on github.
The implementation is a mirror of the official lib, with some minor changes:
or for an even shorter method:
python-systemd has a JournalHandler you can use with the logging framework.
From the documentation: