Systemd error messages for custom service

Systemd error messages for custom service

Tzafrir Cohen tzafrir at cohens.org.il
Wed Sep 6 14:41:38 IDT 2017


On Sun, Sep 03, 2017 at 06:44:05PM +0300, David Suna 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
> 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?<br>

Not a direct answer, but have you tried filtering using --unit?

-- 
Tzafrir Cohen         | tzafrir at jabber.org | VIM is
http://tzafrir.org.il |                    | a Mutt's
tzafrir at cohens.org.il |                    |  best
tzafrir at debian.org    |                    | friend



More information about the Linux-il mailing list