mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 15:17:01 +02:00
MINOR: log: add logger flags
Logger struct may benefit from having a "flags" struct member to set or remove different logger states. For that, we reuse an existing 4 bytes hole in the logger struct to store a 2 bytes flags integer, leaving the struct with a 2-bytes hole now.
This commit is contained in:
parent
a6e38465fb
commit
33f3bec7ee
@ -231,10 +231,16 @@ struct log_target {
|
|||||||
uint16_t flags;
|
uint16_t flags;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum logger_flags {
|
||||||
|
LOGGER_FL_NONE = 0x00,
|
||||||
|
};
|
||||||
|
|
||||||
struct logger {
|
struct logger {
|
||||||
struct list list;
|
struct list list;
|
||||||
struct log_target target;
|
struct log_target target;
|
||||||
struct smp_info lb;
|
struct smp_info lb;
|
||||||
|
uint16_t flags;
|
||||||
|
/* 2 bytes hole */
|
||||||
enum log_fmt format;
|
enum log_fmt format;
|
||||||
int facility;
|
int facility;
|
||||||
int level;
|
int level;
|
||||||
|
Loading…
Reference in New Issue
Block a user