You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@httpd.apache.org by André Malo <nd...@perlig.de> on 2002/08/23 00:31:25 UTC
[PATCH] mod_log_config.xml
Hi,
| LogFormat format|nickname [nickname]
The first nickname there is completely wrong. Nickname resolving isn't
nested.
nd
--
print "Just Another Perl Hacker";
# Andr� Malo, <http://www.perlig.de/> #
Re: [PATCH] mod_log_config.xml
Posted by Joshua Slive <jo...@slive.ca>.
André Malo wrote:
>
> Little mistake there ;-) I think you meant LogFormat instead of
> TransferLog.
Ouch, you're right. Fixed, thanks.
Joshua.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
Re: [PATCH] mod_log_config.xml
Posted by André Malo <nd...@gmx.net>.
* Joshua Slive wrote:
> I'm really trying to avoid any kind of complex formatting in the
> directive definitions (except in <usage>, of course), because that will
> make it easier to reuse this information in other formats.
ok, that makes sense.
> Instead, I've just added a sentence to the <usage> info. It's still not
> incredibly clear, but it is more accurate.
Little mistake there ;-) I think you meant LogFormat instead of
TransferLog.
nd
--
sub the($){+shift} sub answer (){ord q
[* It is always 42! *] }
print the answer
# Andr� Malo # http://www.perlig.de/ #
Re: [PATCH] mod_log_config.xml
Posted by Joshua Slive <jo...@slive.ca>.
André Malo wrote:
> * Joshua Slive wrote:
>
>
>>You're right. The docs are not at all clear on that point and should
>>be improved.
>
>
> Perhaps we can modify the syntax definition as below:
>
I'm really trying to avoid any kind of complex formatting in the
directive definitions (except in <usage>, of course), because that will
make it easier to reuse this information in other formats.
Instead, I've just added a sentence to the <usage> info. It's still not
incredibly clear, but it is more accurate.
Thanks for the heads-up on this.
Joshua.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
Re: [PATCH] mod_log_config.xml
Posted by André Malo <nd...@perlig.de>.
* Joshua Slive wrote:
> You're right. The docs are not at all clear on that point and should
> be improved.
Perhaps we can modify the syntax definition as below:
Syntax: LogFormat format|nickname
LogFormat format [nickname]
Additionally the default should me mentioned inside the overview table:
Default: LogFormat "%h %l %u %t \"%r\" %>s %b" CLF
LogFormat CLF
if this is ok, you may apply the attached patch ;-)
nd
--
my @japh = (sub{q~Just~},sub{q~Another~},sub{q~Perl~},sub{q~Hacker~});
my $japh = q[sub japh { }]; print join #########################
[ $japh =~ /{(.)}/] -> [0] => map $_ -> () # Andr� Malo #
=> @japh; # http://www.perlig.de/ #
Re: [PATCH] mod_log_config.xml
Posted by Joshua Slive <jo...@slive.ca>.
André Malo wrote:
> *grr* TransferLog works fine with that example (of course). Maybe the
> docs have to be clearified at this point. I didn't think about
> TransferLog (because I don't use it normally ;-) and tried:
You're right. The docs are not at all clear on that point and should be
improved.
Joshua.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
Re: [PATCH] mod_log_config.xml
Posted by André Malo <nd...@perlig.de>.
* Joshua Slive wrote:
> André Malo wrote:
>> | LogFormat format|nickname [nickname]
>>
>> The first nickname there is completely wrong. Nickname resolving
>> isn't nested.
>
> Are you sure? I haven't tested that (and I don't think it is a very
> useful feature), but if it doesn't work, then the docs have been
> wrong since 1997.
>
> Are you saying that this doesn't apply the format yayada to
> subsequent Transferlogs?
>
> LogFormat yayada nick1
> LogFormat nick1
*grr* TransferLog works fine with that example (of course). Maybe the
docs have to be clearified at this point. I didn't think about
TransferLog (because I don't use it normally ;-) and tried:
LogFormat yayada nick1
LogFormat nick1 combined
CustomLog logs/access.log combined
In this case the string "nick1" is logged at every request.
Sorry for confusion, I think, I'll go and look for my bed now... ;-)
nd
--
print "Just Another Perl Hacker";
# André Malo, <http://www.perlig.de/> #
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
Re: [PATCH] mod_log_config.xml
Posted by Joshua Slive <jo...@slive.ca>.
André Malo wrote:
> Hi,
>
> | LogFormat format|nickname [nickname]
>
> The first nickname there is completely wrong. Nickname resolving isn't
> nested.
Are you sure? I haven't tested that (and I don't think it is a very
useful feature), but if it doesn't work, then the docs have been wrong
since 1997.
Are you saying that this doesn't apply the format yayada to subsequent
Transferlogs?
LogFormat yayada nick1
LogFormat nick1
Joshua.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org