Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb629398

Browse files
author
Felipe Zimmerle
committed
Adds ap_log_cerror_ to the standalone implementation
1 parent7bdb79a commitb629398

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

‎standalone/server.c‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,33 @@ AP_DECLARE(void) ap_log_error_(const char *file, int line, int module_index,
285285
modsecLogHook(modsecLogObj,level,errstr);
286286
}
287287

288+
289+
#ifAP_SERVER_MAJORVERSION_NUMBER>1&&AP_SERVER_MINORVERSION_NUMBER<3
290+
AP_DECLARE(void)ap_log_cerror(constchar*file,intline,intlevel,
291+
apr_status_tstatus,constconn_rec*r,
292+
constchar*fmt, ...)
293+
// __attribute__((format(printf,6,7)))
294+
#else
295+
AP_DECLARE(void)ap_log_cerror_(constchar*file,intline,intmodule_index,
296+
intlevel,apr_status_tstatus,
297+
constconn_rec*c,constchar*fmt, ...)
298+
// __attribute__((format(printf,7,8)))
299+
#endif
300+
{
301+
va_listargs;
302+
charerrstr[MAX_STRING_LEN];
303+
304+
va_start(args,fmt);
305+
306+
apr_vsnprintf(errstr,MAX_STRING_LEN,fmt,args);
307+
308+
va_end(args);
309+
310+
if(modsecLogHook!=NULL)
311+
modsecLogHook(modsecLogObj,level,errstr);
312+
}
313+
314+
288315
#ifAP_SERVER_MAJORVERSION_NUMBER>1&&AP_SERVER_MINORVERSION_NUMBER<3
289316
AP_DECLARE(void)ap_log_rerror(constchar*file,intline,intlevel,
290317
apr_status_tstatus,constrequest_rec*r,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp