log.c revision b31025f6f2c0392dc76eecca7f27faad0b902be0
08cb74ca432a8c24e39f17dedce527e6a47b8001jerenkrantz/* ====================================================================
08cb74ca432a8c24e39f17dedce527e6a47b8001jerenkrantz * The Apache Software License, Version 1.1
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * Copyright (c) 2000 The Apache Software Foundation. All rights
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * Redistribution and use in source and binary forms, with or without
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * modification, are permitted provided that the following conditions
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * 1. Redistributions of source code must retain the above copyright
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * notice, this list of conditions and the following disclaimer.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * 2. Redistributions in binary form must reproduce the above copyright
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * notice, this list of conditions and the following disclaimer in
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * the documentation and/or other materials provided with the
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * distribution.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * 3. The end-user documentation included with the redistribution,
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * if any, must include the following acknowledgment:
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * "This product includes software developed by the
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * Apache Software Foundation (http://www.apache.org/)."
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * Alternately, this acknowledgment may appear in the software itself,
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * if and wherever such third-party acknowledgments normally appear.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * 4. The names "Apache" and "Apache Software Foundation" must
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * not be used to endorse or promote products derived from this
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * software without prior written permission. For written
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * permission, please contact apache@apache.org.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * 5. Products derived from this software may not be called "Apache",
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * nor may "Apache" appear in their name, without prior written
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * permission of the Apache Software Foundation.
5c0419d51818eb02045cf923a9fe456127a44c60wrowe * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
d266c3777146d36a4c23c17aad6f153aebea1bf4jorton * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
d266c3777146d36a4c23c17aad6f153aebea1bf4jorton * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
d266c3777146d36a4c23c17aad6f153aebea1bf4jorton * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
d266c3777146d36a4c23c17aad6f153aebea1bf4jorton * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * SUCH DAMAGE.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * ====================================================================
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * This software consists of voluntary contributions made by many
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * individuals on behalf of the Apache Software Foundation. For more
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * information on the Apache Software Foundation, please see
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * Portions of this software are based upon public domain software
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * originally written at the National Center for Supercomputing Applications,
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * University of Illinois, Urbana-Champaign.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * http_log.c: Dealing with the logs and errors
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * Rob McCool
f8fc4173f3b9715e5945b668ba511b77573dc1d1minfrintypedef struct {
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesstatic int log_child(apr_pool_t *p, const char *progname,
8113dac419143273351446c3ad653f3fe5ba5cfdwrowe /* Child process code for 'ErrorLog "|..."';
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * may want a common framework for this, since I expect it will
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * be common for other foo-loggers to want this sort of thing...
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes /* No concept of a child process on Win32 */
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes#endif /* ndef SIGHUP */
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if (((rc = apr_createprocattr_init(&procattr, p)) == APR_SUCCESS) &&
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes const char *pname;
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes procnew = (apr_proc_t *) apr_pcalloc(p, sizeof(*procnew));
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes rc = apr_create_process(procnew, pname, (const char * const *)args,
f43b67c5a9d29b572eac916f8335cedc80c908bebnicholes apr_note_subprocess(p, procnew, kill_after_timeout);
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesstatic void open_error_log(server_rec *s, apr_pool_t *p)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes const char *fname;
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes /* This starts a new process... */
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes "Couldn't start ErrorLog process");
54d22ed1c429b903b029bbd62621f11a9e286137minfrin else if (!strncasecmp(s->error_fname, "syslog", 6)) {
54d22ed1c429b903b029bbd62621f11a9e286137minfrin openlog(ap_server_argv0, LOG_NDELAY|LOG_CONS|LOG_PID,
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes openlog(ap_server_argv0, LOG_NDELAY|LOG_CONS|LOG_PID, LOG_LOCAL7);
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fname = ap_server_root_relative(p, s->error_fname);
54d22ed1c429b903b029bbd62621f11a9e286137minfrin "%s: could not open error log file %s.",
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesvoid ap_open_logs(server_rec *s_main, apr_pool_t *p)
54d22ed1c429b903b029bbd62621f11a9e286137minfrin /* replace stderr with this new log */
54d22ed1c429b903b029bbd62621f11a9e286137minfrin if ((rc = apr_dupfile(&errfile, s_main->error_log, p)) != APR_SUCCESS) {
54d22ed1c429b903b029bbd62621f11a9e286137minfrin "unable to replace stderr with error_log");
54d22ed1c429b903b029bbd62621f11a9e286137minfrin /* note that stderr may still need to be replaced with something
54d22ed1c429b903b029bbd62621f11a9e286137minfrin * because it points to the old error log, or back to the tty
54d22ed1c429b903b029bbd62621f11a9e286137minfrin * of the submitter.
54d22ed1c429b903b029bbd62621f11a9e286137minfrin if (replace_stderr && freopen("/dev/null", "w", stderr) == NULL) {
54d22ed1c429b903b029bbd62621f11a9e286137minfrin "unable to replace stderr with /dev/null");
54d22ed1c429b903b029bbd62621f11a9e286137minfrin for (virt = s_main->next; virt; virt = virt->next) {
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAP_DECLARE(void) ap_error_log2stderr(server_rec *s) {
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes apr_dupfile(&(s->error_log), errfile, s->process->pool);
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesstatic void log_error_core(const char *file, int line, int level,
54d22ed1c429b903b029bbd62621f11a9e286137minfrin const char *referer;
54d22ed1c429b903b029bbd62621f11a9e286137minfrin if (s == NULL) {
54d22ed1c429b903b029bbd62621f11a9e286137minfrin * If we are doing stderr logging (startup), don't log messages that are
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * above the default server log level unless it is a startup/shutdown
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if (((level & APLOG_LEVELMASK) != APLOG_NOTICE) &&
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes else if (s->error_log) {
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * If we are doing normal logging, don't log messages that are
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * above the server log level unless it is a startup/shutdown notice
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if (((level & APLOG_LEVELMASK) != APLOG_NOTICE) &&
54d22ed1c429b903b029bbd62621f11a9e286137minfrin * If we are doing normal logging, don't log messages that are
54d22ed1c429b903b029bbd62621f11a9e286137minfrin * above the server log level unless it is a startup/shutdown notice
54d22ed1c429b903b029bbd62621f11a9e286137minfrin#endif /* TPF */
54d22ed1c429b903b029bbd62621f11a9e286137minfrin * If we are doing syslog logging, don't log messages that are
54d22ed1c429b903b029bbd62621f11a9e286137minfrin * above the server log level (including a startup/shutdown notice)
54d22ed1c429b903b029bbd62621f11a9e286137minfrin if (logf && ((level & APLOG_STARTUP) != APLOG_STARTUP)) {
54d22ed1c429b903b029bbd62621f11a9e286137minfrin len += apr_snprintf(errstr + len, MAX_STRING_LEN - len,
54d22ed1c429b903b029bbd62621f11a9e286137minfrin "[%s] ", priorities[level & APLOG_LEVELMASK].t_name);
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if (file && (level & APLOG_LEVELMASK) == APLOG_DEBUG) {
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes /* In OSD/POSIX, the compiler returns for __FILE__
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * a string like: __FILE__="*POSIX(/usr/include/stdio.h)"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * (it even returns an absolute path for sources in
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * the current directory). Here we try to strip this
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * down to the basename.
8113dac419143273351446c3ad653f3fe5ba5cfdwrowe if (*e == ')')
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes#endif /*_OSD_POSIX*/
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes len += apr_snprintf(errstr + len, MAX_STRING_LEN - len,
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes#endif /* TPF */
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if (r && r->connection) {
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes /* XXX: TODO: add a method of selecting whether logged client
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * addresses are in dotted quad or resolved form... dotted
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * quad is the most secure, which is why I'm implementing it
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * first. -djg
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes len += apr_snprintf(errstr + len, MAX_STRING_LEN - len,
560fd0658902ab57754616c172d8953e69fc4722bnicholes && (status != 0)) {
560fd0658902ab57754616c172d8953e69fc4722bnicholes len += apr_snprintf(errstr + len, MAX_STRING_LEN - len,
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes "(%d)%s: ", status, apr_strerror(status, buf, sizeof(buf)));
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes len += apr_vsnprintf(errstr + len, MAX_STRING_LEN - len, fmt, args);
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if (r && (referer = apr_table_get(r->headers_in, "Referer"))) {
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes len += apr_snprintf(errstr + len, MAX_STRING_LEN - len,
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes /* NULL if we are logging to syslog */
54d22ed1c429b903b029bbd62621f11a9e286137minfrin /* Truncate for the terminator (as apr_snprintf does) */
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAP_DECLARE(void) ap_log_error(const char *file, int line, int level,
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes const char *fmt, ...)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes log_error_core(file, line, level, status, s, NULL, NULL, fmt, args);
54d22ed1c429b903b029bbd62621f11a9e286137minfrinAP_DECLARE(void) ap_log_perror(const char *file, int line, int level,
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes const char *fmt, ...)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes log_error_core(file, line, level, status, NULL, NULL, p, fmt, args);
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAP_DECLARE(void) ap_log_rerror(const char *file, int line, int level,
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes const char *fmt, ...)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes log_error_core(file, line, level, status, r->server, r, NULL, fmt, args);
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * IF the error level is 'warning' or more severe,
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * AND there isn't already error text associated with this request,
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * THEN make the message text available to ErrorDocument and
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * other error processors. This can be disabled by stuffing
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * something, even an empty string, into the "error-notes" cell
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * before calling this routine.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes && (apr_table_get(r->notes, "error-notes") == NULL)) {
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ap_escape_html(r->pool, apr_pvsprintf(r->pool, fmt,
54d22ed1c429b903b029bbd62621f11a9e286137minfrin && apr_stat(&finfo, fname, APR_FINFO_MTIME, p) == APR_SUCCESS) {
54d22ed1c429b903b029bbd62621f11a9e286137minfrin /* WINCH and HUP call this on each restart.
54d22ed1c429b903b029bbd62621f11a9e286137minfrin * Only warn on first time through for this pid.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * XXX: Could just write first time through too, although
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * that may screw up scripts written to do something
f43b67c5a9d29b572eac916f8335cedc80c908bebnicholes * based on the last modification time of the pid file.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ap_log_perror(APLOG_MARK, APLOG_NOERRNO|APLOG_WARNING, 0, p,
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes "pid file %s overwritten -- Unclean shutdown of previous Apache run?",
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if ((rv = apr_open(&pid_file, fname, APR_WRITE | APR_CREATE | APR_TRUNCATE,
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes APR_UREAD | APR_UWRITE | APR_GREAD | APR_WREAD, p)) != APR_SUCCESS) {
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, 0, NULL,
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes "%s: could not log pid to file %s",
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes apr_fprintf(pid_file, "%ld" APR_EOL_STR, (long)mypid);
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAP_DECLARE(void) ap_log_assert(const char *szExp, const char *szFile, int nLine)
8113dac419143273351446c3ad653f3fe5ba5cfdwrowe ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL,
8113dac419143273351446c3ad653f3fe5ba5cfdwrowe "[%s] file %s, line %d, assertion \"%s\" failed",
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes /* unix assert does an abort leading to a core dump */
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes/* piped log support */
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes/* forward declaration */
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesstatic void piped_log_maintenance(int reason, void *data, apr_wait_t status);
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if (((status = apr_createprocattr_init(&procattr, pl->p)) != APR_SUCCESS) ||
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ((status = apr_setprocattr_childin(procattr, ap_piped_log_read_fd(pl),
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes /* Something bad happened, give up and go away. */
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL,
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes "piped_log_spawn: unable to setup child process '%s': %s",
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes pl->program, apr_strerror(status, buf, sizeof(buf)));
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes const char *pname;
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes rc = apr_create_process(procnew, pname, (const char * const *) args,
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes /* pjr - This no longer happens inside the child, */
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes /* I am assuming that if apr_create_process was */
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes /* successful that the child is running. */
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes apr_register_other_child(procnew, piped_log_maintenance, pl,
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesstatic void piped_log_maintenance(int reason, void *data, apr_wait_t status)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes /* during a restart */
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes /* during a restart */
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if ((stats = piped_log_spawn(pl)) != APR_SUCCESS) {
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes /* what can we do? This could be the error log we're having
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * problems opening up... */
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL,
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes "piped_log_maintenance: unable to respawn '%s': %s",
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes pl->program, apr_strerror(stats, buf, sizeof(buf)));
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes /* We should not kill off the pipe here, since it may only be full.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes * If it really is locked, we should kill it off manually. */
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesstatic apr_status_t piped_log_cleanup_for_exec(void *data)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAP_DECLARE(piped_log *) ap_open_piped_log(apr_pool_t *p, const char *program)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if (apr_create_pipe(&ap_piped_log_read_fd(pl), &ap_piped_log_write_fd(pl), p) != APR_SUCCESS) {
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes apr_register_cleanup(p, pl, piped_log_cleanup, piped_log_cleanup_for_exec);
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAP_DECLARE(piped_log *) ap_open_piped_log(apr_pool_t *p, const char *program)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes "Couldn't start piped log process");