]> git.kaiwu.me - haproxy.git/commit
MEDIUM: log: support a new "short" format
authorWilly Tarreau <w@1wt.eu>
Mon, 12 Nov 2018 07:45:00 +0000 (08:45 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 12 Nov 2018 17:37:55 +0000 (18:37 +0100)
commite8746a08b249622cd72a441526c76366a4a9f663
tree89d1ba0eaddf6fd3fdb30d1a4eed370f95cb3cc4
parent5a32ecc6cf035468f119a7556d64f5cb6e8d11d1
MEDIUM: log: support a new "short" format

This format is meant to be used with local file descriptors. It emits
messages only prefixed with a level, removing all the process name,
system name, date and so on. It is similar to the printk() format used
on Linux. It's suitable to be sent to a local logger compatible with
systemd's output format.

Note that the facility is still required but not used, hence it is
suggested to use "daemon" to remind that it's a local logger.
Example :

    log stdout format short daemon          # send everything to stdout
    log stderr format short daemon notice   # send important events to stderr
doc/configuration.txt
include/types/log.h
src/log.c