Annotation of embedaddon/lighttpd/src/log.h, revision 1.1.1.2
1.1 misho 1: #ifndef _LOG_H_
2: #define _LOG_H_
3:
4: #include "server.h"
5:
6: /* Close fd and _try_ to get a /dev/null for it instead.
7: * Returns 0 on success and -1 on failure (fd gets closed in all cases)
8: */
9: int openDevNull(int fd);
10:
11: int open_logfile_or_pipe(server *srv, const char* logfile);
12:
13: int log_error_open(server *srv);
14: int log_error_close(server *srv);
15: int log_error_write(server *srv, const char *filename, unsigned int line, const char *fmt, ...);
16: int log_error_write_multiline_buffer(server *srv, const char *filename, unsigned int line, buffer *multiline, const char *fmt, ...);
17: int log_error_cycle(server *srv);
18:
19: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>