Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • "What could I be missing", maybe Send output to systemd-journal from C++ program or How can I send a message to the systemd journal? Commented Oct 6, 2024 at 15:57
  • 1
    "I simply print with printf("..."); - but there is nothing to see in the journal.", I would expect a printk there if I remember it right. Commented Oct 6, 2024 at 15:59
  • @U880D printk is used in the kernel, it’s not available in user land. Commented Oct 6, 2024 at 16:00
  • @StephenKitt, good hint. Commented Oct 6, 2024 at 16:06
  • 1
    You need to ensure your output is flushed (see the update to my answer). Commented Oct 6, 2024 at 17:35