python-systemd icon indicating copy to clipboard operation
python-systemd copied to clipboard

Log to a specific journal namespace

Open GreatBahram opened this issue 5 years ago • 3 comments

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

GreatBahram avatar Sep 15 '20 09:09 GreatBahram

Would this fix it for you: https://github.com/systemd/python-systemd/pull/87 ?

jankatins avatar Aug 30 '21 08:08 jankatins

Yes, this is exactly what I wanted.

Thanks

GreatBahram avatar Aug 30 '21 12:08 GreatBahram

How does #87 allow writing to a journal namespace? I need to be able to log new messages, not read existing ones.

TheUbuntuGuy avatar Feb 22 '23 19:02 TheUbuntuGuy