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)
31 # define LOG_WARNING 2
39 int logger_open_syslog(struct ProxyContext_
* const context
);
41 int logger(struct ProxyContext_
* const context
,
42 const int crit
, const char * const format
, ...)
43 __attribute__ ((format(printf
, 3, 4)));
45 int logger_noformat(struct ProxyContext_
* const context
,
46 const int crit
, const char * const msg
);
48 int logger_error(struct ProxyContext_
* const context
,
49 const char * const msg
);
51 int logger_close(struct ProxyContext_
* const context
);