Return-Path: Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 76077 invoked by uid 500); 27 Aug 2001 15:37:49 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 76056 invoked from network); 27 Aug 2001 15:37:49 -0000 Message-ID: <030f01c12f0e$2e9c08f0$f665a8c0@dt910> From: "George Schlossnagle" To: , References: <3B8A50F9.CD7A39BF@algroup.co.uk> <01082708085103.15633@koj.rkbloom.net> <027701c12f0a$f6d83ef0$f665a8c0@dt910> <01082708332104.15633@koj.rkbloom.net> Subject: Re: [Fwd: [Spread-users] send text to spread group from command line?] Date: Mon, 27 Aug 2001 11:37:29 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Status: O X-Status: X-Keywords: X-UID: 1406 Makes sense. Still it would be nice to be able to run core_error_log conditionally. So that I can send my logs to spread, send an SNMP trap and not log to disk, because I confirmed I succeeded in one of the first two. That's why I think it should be run last (except perhaps a fatal level error logger at the head of the bunch). The point is that I don't want to unconditionally send logs to /dev/null, but only if I succeeded in sending them with my user-defined method. ----- Original Message ----- From: "Ryan Bloom" To: "George Schlossnagle" ; Sent: Monday, August 27, 2001 11:33 AM Subject: Re: [Fwd: [Spread-users] send text to spread group from command line?] > On Monday 27 August 2001 08:14, George Schlossnagle wrote: > > Hmmm... I undesrtand you concern. It might be nice to have a 'panic' type > > log. Still, implementing a RUN_FIRST hook has the benefit of saying 'Try > > and log however you want, and if you fail, then fall onto core_logging'. > > Sometimes people don't want redundancy in their logs, sometimes you want to > > be guaranteed you have one copy of it somewhere without always having 3 > > copies. > > I understand this. The problem is that a RUN_FIRST removes any level > of redundancy. A RUN_ALL allows the server admin to setup as much > redundancy as they want. If you want to log to just spread, then set > ErrorLog to /dev/null. If it is a RUN_FIRST, and I want to log to spread, > and send an SNMP trap whenever I get a critical error, how do I do that? > > This needs to be a RUN_ALL. > > Ryan > > > The specific instance I see for this is error logging via spread. It would > > be swell to be able to just dump error logs to spread, and write to disk if > > and only if there was a problem (in which case, you have the logging module > > return a DECLINED and then you log to disk.) Implementing the hook where I > > did also allows you to add a run-first panic log hook that always logs > > fatal errors to disk, and returns DECLINED to let the rest of the handlers > > run. > > > > Thoughts? > > > > George > > > > > > ----- Original Message ----- > > From: "Ryan Bloom" > > To: "George Schlossnagle" ; > > > > Cc: > > Sent: Monday, August 27, 2001 11:08 AM > > Subject: Re: [Fwd: [Spread-users] send text to spread group from command > > line?] > > > > > On Monday 27 August 2001 07:26, George Schlossnagle wrote: > > > > For better or for worse, there are alot of folks who would prefer to > > > > turn > > > > > > off local error logging completely, and do all logging via a > > > > distributed mechanism. Actually, I was also considering whether it > > > > would be better > > > > to > > > > > > do a AP_IMPLEMENT_HOOK_RUN_FIRST, so that you can /truly/ override the > > > > internal logging mechanism safely. Would that fit people's > > > > safety/flexibility concerns better? > > > > > > There are still ways to disable the logging to the disk, but I am > > > > concerned that > > > > > if you allow modules to run before the core's error logging mechanism, > > > > then > > > > > you take the very real chance that you will never see any logs, ever. > > > > > > Also, this should not be a RUN_FIRST, because that removes any redundancy > > > in the system at all. > > > > > > Ryan > > > > > > ______________________________________________________________ > > > Ryan Bloom rbb@apache.org > > > Covalent Technologies rbb@covalent.net > > > -------------------------------------------------------------- > > -- > > ______________________________________________________________ > Ryan Bloom rbb@apache.org > Covalent Technologies rbb@covalent.net > -------------------------------------------------------------- >