MINOR: lua: Add flags to configure logging behaviour
authorTristan <tristan@mangadex.org>
Mon, 23 Oct 2023 12:07:39 +0000 (13:07 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 25 Oct 2023 05:48:48 +0000 (07:48 +0200)
commit97dacbbb86fa14b8c864c6e4616f55baf95c7e91
treecd1905221d53d8e3c1eca6dbafc8cbdadda782da
parentb12613f0acc9e542baa4cb9626ef7f6693b984a7
MINOR: lua: Add flags to configure logging behaviour

Until now, messages printed from LUA log functions were sent both to
the any logger configured for the current proxy, and additionally to
stderr (in most cases)

This introduces two flags to configure LUA log handling:
- tune.lua.log.loggers to use standard loggers or not
- tune.lua.log.stderr to use stderr, or not, or only conditionally

This addresses github feature request #2316

This can be backported to 2.8 as it doesn't change previous behaviour.
doc/configuration.txt
doc/lua-api/index.rst
doc/lua.txt
src/hlua.c