Annotation of embedaddon/lighttpd/src/log.h, revision 1.1

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: #define WP() log_error_write(srv, __FILE__, __LINE__, "");
        !            12: 
        !            13: int open_logfile_or_pipe(server *srv, const char* logfile);
        !            14: 
        !            15: int log_error_open(server *srv);
        !            16: int log_error_close(server *srv);
        !            17: int log_error_write(server *srv, const char *filename, unsigned int line, const char *fmt, ...);
        !            18: int log_error_write_multiline_buffer(server *srv, const char *filename, unsigned int line, buffer *multiline, const char *fmt, ...);
        !            19: int log_error_cycle(server *srv);
        !            20: 
        !            21: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>