diff options
Diffstat (limited to 'apache20.h')
| -rw-r--r-- | apache20.h | 13 |
1 files changed, 11 insertions, 2 deletions
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $Id$ */ | 1 | /* $Header: /home/cvs/mod_log_sql/apache20.h,v 1.3 2004/01/21 04:34:21 urkle Exp $ */ |
| 2 | #ifndef APACHE20_H | 2 | #ifndef APACHE20_H |
| 3 | #define APACHE20_H | 3 | #define APACHE20_H |
| 4 | 4 | ||
| @@ -20,6 +20,15 @@ | |||
| 20 | 20 | ||
| 21 | #include "util_time.h" | 21 | #include "util_time.h" |
| 22 | 22 | ||
| 23 | #define log_error ap_log_error | 23 | static void log_error(char *file, int line, int level, const server_rec *s, const char *fmt, ...) __attribute__ ((format (printf, 5,6))); |
| 24 | static inline void log_error(char *file, int line, int level, const server_rec *s, const char *fmt, ...) | ||
| 25 | { | ||
| 26 | static char buff[MAX_STRING_LEN]; | ||
| 27 | va_list args; | ||
| 28 | va_start(args, fmt); | ||
| 29 | apr_vsnprintf(buff,MAX_STRING_LEN, fmt,args); | ||
| 30 | ap_log_error(file,line,level,0,s,"%s",buff); | ||
| 31 | va_end(args); | ||
| 32 | } | ||
| 24 | 33 | ||
| 25 | #endif /* APACHE20_H */ | 34 | #endif /* APACHE20_H */ |
