Discussion:
journald: default log level for messages on stdout/stderr?
(too old to reply)
Zatkovský Dušan
2017-11-16 09:38:08 UTC
Permalink
Hi there.

Is it possible to change which priority gives systemd to stdout/stderr
messages produced by the service?

What I want is to have MaxLevelStore=info and following output:

<6> this is info
<7> this is debug
this is some trash
<4> this is warning

but persist to journal only:

<6> this is info
<4> this is warning

Systemd stores also "this is some trash" what is exactly what I don't
want to.

Can't find how to do that. Anybody? Thank you

--
msk
Lennart Poettering
2017-11-16 09:47:12 UTC
Permalink
Post by Zatkovský Dušan
Hi there.
Is it possible to change which priority gives systemd to stdout/stderr
messages produced by the service?
<6> this is info
<7> this is debug
this is some trash
<4> this is warning
<6> this is info
<4> this is warning
Systemd stores also "this is some trash" what is exactly what I don't want
to.
Can't find how to do that. Anybody? Thank you
https://www.freedesktop.org/software/systemd/man/systemd.exec.html#SyslogLevel=

Lennart
--
Lennart Poettering, Red Hat
Loading...