File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / lighttpd / src / log.h
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Sun Jun 15 20:20:06 2014 UTC (10 years, 1 month ago) by misho
Branches: lighttpd, MAIN
CVS tags: v1_4_35p0, v1_4_35, HEAD
lighttpd 1.4.35

    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>