]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: tree-wide: logsrv struct becomes logger
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 11 Sep 2023 13:06:53 +0000 (15:06 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Oct 2023 08:05:06 +0000 (10:05 +0200)
commit18da35c123803f5aecd8204d82777c07af9603c6
treec1ee9293674f11924fc34aaae5df92acd06c2a98
parent89d685f396b752d7af8a09e0a19a8a469a2cf2d4
MEDIUM: tree-wide: logsrv struct becomes logger

When 'log' directive was implemented, the internal representation was
named 'struct logsrv', because the 'log' directive would directly point
to the log target, which used to be a (UDP) log server exclusively at
that time, hence the name.

But things have become more complex, since today 'log' directive can point
to ring targets (implicit, or named) for example.

Indeed, a 'log' directive does no longer reference the "final" server to
which the log will be sent, but instead it describes which log API and
parameters to use for transporting the log messages to the proper log
destination.

So now the term 'logsrv' is rather confusing and prevents us from
introducing a new level of abstraction because they would be mixed
with logsrv.

So in order to better designate this 'log' directive, and make it more
generic, we chose the word 'logger' which now replaces logsrv everywhere
it was used in the code (including related comments).

This is internal rewording, so no functional change should be expected
on user-side.
20 files changed:
addons/ot/src/conf.c
addons/ot/src/parser.c
include/haproxy/fcgi-app-t.h
include/haproxy/global-t.h
include/haproxy/log-t.h
include/haproxy/log.h
include/haproxy/proxy-t.h
include/haproxy/sink.h
src/cfgparse-global.c
src/cfgparse-listen.c
src/cfgparse.c
src/fcgi-app.c
src/flt_spoe.c
src/frontend.c
src/haproxy.c
src/http_client.c
src/log.c
src/mux_fcgi.c
src/proxy.c
src/sink.c