10 # define MAX_LOG_LINE 1024U
12 #ifndef LOG_WRITE_TIMEOUT
13 # define LOG_WRITE_TIMEOUT -1
16 #ifndef LOGGER_DELAY_BETWEEN_IDENTICAL_LOG_ENTRIES
17 # define LOGGER_DELAY_BETWEEN_IDENTICAL_LOG_ENTRIES 1
19 #ifndef LOGGER_ALLOWED_BURST_FOR_IDENTICAL_LOG_ENTRIES
20 # define LOGGER_ALLOWED_BURST_FOR_IDENTICAL_LOG_ENTRIES 10U
24 # define XDEBUG(X) do { X; } while(0)
34 # define LOG_WARNING 4
42 int logger_open_syslog(struct ProxyContext_
* const context
);
44 int logger(struct ProxyContext_
* const context
,
45 const int crit
, const char * const format
, ...)
46 __attribute__ ((format(printf
, 3, 4)));
48 int logger_noformat(struct ProxyContext_
* const context
,
49 const int crit
, const char * const msg
);
51 int logger_error(struct ProxyContext_
* const context
,
52 const char * const msg
);
54 int logger_close(struct ProxyContext_
* const context
);