]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: log: introduce extra log profile steps
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 31 Jul 2024 09:15:13 +0000 (11:15 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 26 Sep 2024 14:53:07 +0000 (16:53 +0200)
commit818475c5cc7a429f43d04209add998d6274d9c79
tree0cd589f0d78e5de656e493769b4409f4624fcd96
parentfacf259d8849dee9d5b43cd87cd66df2a2d76a68
MINOR: log: introduce extra log profile steps

add a way to register additional log origins using log_origin_register()
that may be used as log profile steps from log profile sections.

For now this does nothing as no extra origins are registered and extra log
origins are not yet considered for runtime logging paths.

When specifying an extra logging step for on <step> under log-profile
section, the logging step is stored within a binary tree for efficient
lookup during runtime. No performance impact should be expected if extra
log origins are not being used, and slight performance impact if extra
log origins are used.

Don't forget to update the documentation when new log origins are added
(both %OG log alias and on <step> log-profile keyword are concerned.
include/haproxy/log-t.h
include/haproxy/log.h
src/log.c