Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 54685 invoked from network); 5 Feb 2010 14:39:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Feb 2010 14:39:58 -0000 Received: (qmail 93165 invoked by uid 500); 5 Feb 2010 14:39:57 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 93077 invoked by uid 500); 5 Feb 2010 14:39:57 -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: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 93068 invoked by uid 99); 5 Feb 2010 14:39:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Feb 2010 14:39:57 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=FRT_LEVITRA,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of poirier@pobox.com designates 208.72.237.35 as permitted sender) Received: from [208.72.237.35] (HELO sasl.smtp.pobox.com) (208.72.237.35) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Feb 2010 14:39:47 +0000 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id 161E38AF52; Fri, 5 Feb 2010 09:39:25 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to :subject:in-reply-to:references:date:message-id:mime-version :content-type; s=sasl; bh=MmiI423gVFugU7sAjupixAyxpLs=; b=ahRryu qXYEj81GTktsrcF7f/H33KElBMpWMr6Da7JWJG71OEEZ5d8BX2cyve9CR+6zw9nw 2siUW6L+OPHB4l8TJo57vwuLGiAG4Pc4lbEiJ+iKIIaLlGxS2q/7yKtNKpyGMrQ9 ch56N/cjuRAnOmz40kKItmpkIUNOwVE1SRaJw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:subject :in-reply-to:references:date:message-id:mime-version :content-type; q=dns; s=sasl; b=UjThCM9hQR4JV2g0AY9e1xUH1Gio4Eo/ fZmBKm9M8nc1G75sCsc4ERtkYIZ34/0AB+tCus72rPxBHZqhMmxuEuIwMY1jrm4t 1fzD206RIvDYXGJ49oUdhCRD5jMz4sbxFQYZWvNHEIsMSOPaI5m24bnHtA9mGu06 PMEcW2Dw+u8= Received: from b-pb-sasl-quonix. (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id 049828AF50; Fri, 5 Feb 2010 09:39:23 -0500 (EST) Received: from slappy (unknown [129.33.49.251]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by b-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 93BA38AF48; Fri, 5 Feb 2010 09:39:15 -0500 (EST) From: Dan Poirier To: dev@httpd.apache.org Subject: Re: [PATCH] LogLevel refactoring part 1 In-Reply-To: <201002030922.21616.sf@sfritsch.de> (Stefan Fritsch's message of "Wed, 3 Feb 2010 09:22:21 +0100") References: <201002030922.21616.sf@sfritsch.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (darwin) Date: Fri, 05 Feb 2010 09:39:13 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Pobox-Relay-ID: 40EF7B52-1264-11DF-A10E-99270635E987-25076293!b-pb-sasl-quonix.pobox.com On Wed, Feb 3, 2010, at 03:22:21 AM, Stefan Fritsch wrote: > ap_log_error_wrapper.diff: > On C99 compilers, avoid argument setup and function call overhead if > the log message will be discarded anyway. Also allow to disable higher > loglevels at compile time by defining APLOG_MAX_LOGLEVEL. > On pre-C99 compilers, it should just work like before. This seems like a reasonable thing to do. I can't comment on the correctness, not being up on C99. Is there some server coding convention calling for trailing _ and __ on the macro and function names? If not, my personal preference would be something more meaningful when reading the code. I'd love to know difference this makes in processor usage under load, between running with loglevel debug and something lower. Saving a function call for every logging line on the main path could be a big win. > loglevel_trace.diff: > Introduce additional log levels trace1 ... trace8 above the debug > level. If we're thinking about expanding control of debug messages, my inclination would be to work toward allowing independent control of messages from different parts of the code or about different things, rather than a strict series of increasing levels of logging. E.g. maybe today I'd like to see all debug trace from authentication, but tomorrow just see SSL stuff. Dan