[core] set REDIRECT_STATUS to error_handler_saved_status (fixes #1828)
[lighttpd.git] / src / log.h
blob0570f0b7e0153f1f82e1885cb906aef5d688d015
1 #ifndef _LOG_H_
2 #define _LOG_H_
3 #include "first.h"
5 #include "server.h"
7 ssize_t write_all(int fd, const void* buf, size_t count);
9 /* Close fd and _try_ to get a /dev/null for it instead.
10 * Returns 0 on success and -1 on failure (fd gets closed in all cases)
12 int openDevNull(int fd);
14 int open_logfile_or_pipe(server *srv, const char* logfile);
16 int log_error_open(server *srv);
17 int log_error_close(server *srv);
18 int log_error_write(server *srv, const char *filename, unsigned int line, const char *fmt, ...);
19 int log_error_write_multiline_buffer(server *srv, const char *filename, unsigned int line, buffer *multiline, const char *fmt, ...);
20 int log_error_cycle(server *srv);
22 #endif