Steven Roussey wrote: > Yes. Ideally such that you can grep for the failed URLs. I can see this > as being very helpful to a lot of people. Debug modes don't work for > production servers and it is only there that it is showing itself. > > BTW - Easy for you maybe!
Don't take my word, have a look at it! :) Ivan
#include "httpd.h" #include "http_config.h" #include "http_request.h" #include "http_protocol.h" #include "http_core.h" #include "http_main.h" #include "http_log.h" module MODULE_VAR_EXPORT earlylog_module; static int el_log(request_rec *r) { ap_log_rerror(APLOG_MARK, APLOG_NOTICE|APLOG_NOERRNO, r, "mod_earlylog: [%s] %s", r->hostname, r->the_request); return DECLINED; } module MODULE_VAR_EXPORT earlylog_module = { STANDARD_MODULE_STUFF, NULL, /* module initializer */ NULL, /* create per-dir config structures */ NULL, /* merge per-dir config structures */ NULL, /* create per-server config structures */ NULL, /* merge per-server config structures */ NULL, /* table of config file commands */ NULL, /* [#8] MIME-typed-dispatched handlers */ NULL, /* [#1] URI to filename translation */ NULL, /* [#4] validate user id from request */ NULL, /* [#5] check if the user is ok _here_ */ NULL, /* [#3] check access by host address */ NULL, /* [#6] determine MIME type */ NULL, /* [#7] pre-run fixups */ NULL, /* [#9] log a transaction */ NULL, /* [#2] header parser */ NULL, /* child_init */ NULL, /* child_exit */ el_log /* [#0] post read-request */ };
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php