httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 15905] New: - turn off ErrorLog enhancement
Date Wed, 08 Jan 2003 21:08:59 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15905>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15905

turn off ErrorLog enhancement

           Summary: turn off ErrorLog enhancement
           Product: Apache httpd-2.0
           Version: 2.0.43
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: pedietz@west.com


I would like to see an option to ErrorLog that turns off the filelogging and 
syslogging.  Perhaps:

ErrorLog none

Then people using custom modules that hook onto ap_hook_error_log(), will not 
get duplicate error messages...

(I have to log to syslog in a special format...not the one done by apache.  
Right now everything gets logged 2 times...once by log_error_core and once by 
my special module).

An alternative:

Put the "writing routines" of log_error_core() into its own function  (let's 
call it write_error_log)...and add that function to the "hook list" as 
ap_hook_error_log(write_error_log,NULL,NULL,APR_HOOK_MIDDLE);

Then I can set my custom module to APR_HOOK_FIRST and have it return a special 
value so write_error_log() is not done.

Right now log_error_core is always 1st regardless.


Please consider this.  Most people don't care about error logs...but large 
companies do.

(ps my module adds project ids to the errors, so we can pinpoint who is having 
issues.  ie

[Wed Jan 08 15:32:10 2003] [error] [client 10.50.80.42] [client pepsi] [project 
sweepstake11] [hitid HPhyKyqweXm0AADcWAsc] File does not exist: /usr/loca
l/apache2/htdocs/a.cgierferf

Tools like unicenter can key off of [client] and [project] and escalate special.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message