httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (Rodent of Unusual Size)
Subject Re: [PATCH] to allow naming of logfile formats
Date Tue, 19 Aug 1997 17:39:32 GMT
>From the fingers of Randy Terbush flowed the following:
>> >From the fingers of Marc Slemko flowed the following:
>> >
>> >Oh, something else that would be cool is magic words for CustomLog, eg.
>> >CLF, ECLF, etc.
>>     Now you've done it.  I think the attached patch does this for you.
>>     It adds a directive (settle down, Dean!):
>>      DefineLogFormat myformat "Private format: \"%r\""
>Why can LogFormat be changed to allow this with the reversed order?

    I assume you mean "why can't".  No particular reason - except that
    it would name it and apply it in a single step.  That's like
    definition-by-first-use, like Perl scalars.  If you used LogFormat
    as the only way to define the names, you'd be changing the default
    format each time - and the last use would dominate.

    Or do you mean "if two args, define only"?  Then -1 on the
    "format name" syntax rather than "name format" - that's like
    "23 = x".

    If you want "LogFormat format-string" to set the default, and
    "LogFormat format-name format-string" I *might* be convinced, but I
    really don't like directives that are sometimes passive and
    sometimes active.  And I'm not keen on "'LogFormat name format'
    defines the format, but 'LogFormat format' applies it."  Yggh.

    Honestly, I'm going to stop writing feature patches.  Somebody
    always finds something wrong with them or else wants more..

    #ken    :-)}

View raw message