]> git.ipfire.org Git - thirdparty/util-linux.git/commit
logger: Define SD_JOURNAL_SUPPRESS_LOCATION.
authorYmrDtnJu <YmrDtnJu@users.noreply.github.com>
Sat, 7 Jul 2018 18:11:46 +0000 (20:11 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Jul 2018 14:15:59 +0000 (16:15 +0200)
commit5407a6ac4fe1a0d57049530fb144a83ebc1291d9
tree8a2e5e977eebab0bbca6dd0a1c1a77925d3f7b17
parent75ef5a12224721b932762d4e8d879745831bea28
logger: Define SD_JOURNAL_SUPPRESS_LOCATION.

The normal journald functions add the location in the C source code files to
the log messages. This is nice for a big C based project, but logger is used in
scripts so it would be more useful to let users specify the location in the
script by adding the CODE_FUNC, CODE_FILE and CODE_FILE fields to the log
message.

It is already possible to do this, but it will result in two versions of these
fields: one for the location in logger.c and one for the location in the
script.
misc-utils/logger.c