python-systemd
python-systemd copied to clipboard
Log to a specific journal namespace
Hello there,
Recently systemd guys added the namespace feature, I want to log to a specific journal namespace inside my Python code, How can I achieve this behaviour? Can I do this without waiting for the future updates by, like using the _NAMESPACE keyword variable? or any other way?
Thanks, Bahram
Would this fix it for you: https://github.com/systemd/python-systemd/pull/87 ?
Yes, this is exactly what I wanted.
Thanks
How does #87 allow writing to a journal namespace? I need to be able to log new messages, not read existing ones.