Willy Tarreau 0851fd5eef MINOR: debug: support logging to various sinks
As discussed in the thread below [1], the debug converter is currently
not of much use given that it's only built when DEBUG_EXPR is set, and
it is limited to stderr only.

This patch changes this to make it take an optional prefix and an optional
target sink so that it can log to stdout, stderr or a ring buffer. The
default output is the "buf0" ring buffer, that can be consulted from the
CLI.

[1] https://www.mail-archive.com/haproxy@formilux.org/msg35671.html

Note: if this patch is backported, it also requires the following commit to
work: 46dfd78cbf ("BUG/MINOR: sample: always check converters' arguments").
2019-12-19 09:19:13 +01:00
..
2019-05-25 07:34:24 +02:00
2006-06-15 21:48:13 +02:00
2006-06-15 21:48:13 +02:00
2019-05-25 07:34:24 +02:00
2019-05-25 07:34:24 +02:00
2019-05-25 07:34:24 +02:00
2019-05-25 07:34:24 +02:00
2019-05-25 07:34:24 +02:00