Re: Systemd error messages for custom service
Yedidyah Bar David <linux-il-yJJ6QvF2VnWgIy896fyfyti2O/[email protected]>
| Newsgroups | gmane.linux.region.israel |
|---|---|
| Message-ID | <CAGtcZ6tDgM+ycmcBC-NuBARMrWxEmZvweuJM6DxUjFOHGd8jjQ@mail.gmail.com> |
On Sun, Sep 3, 2017 at 6:44 PM, David Suna <david-lbDOmM3XA9gS/[email protected]> wrote: > I am getting started with systemd on an Ubuntu 16.04 system. I have a custom > service implemented in PHP which is outputting messages How? Writing to stdout? > which I can see > using journalctl. I would like to be able to filter on the message priority > to distinguish between error messages and debug messages. However, all of my > messages seem to be showing as info messages. How can I format my messages > so that they will fit into the different log levels? I think you should use syslog, and/or systemd-/journald-specific means, e.g.: https://github.com/systemd/php-systemd Best, -- Didi _______________________________________________ Linux-il mailing list [email protected] http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il