You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Geurts, G.P.T.M." <g....@i-groep.leidenuniv.nl> on 2009/09/01 12:58:34 UTC

[users@httpd] LogFormat %{FOOBAR}n note

Hello list,
I'm working on customised logging for our http servers, one thing I was
unable to find information about is the %{FOOBAR}n option for LogFormat.
The documentation says it's the contense of note FOOBAR from another
module.... But what is that exacly and wich modules contain notes? And
why could that be interesting to log? Why not open the note of the
module if you want to know it?
I'm probably completely misunderstanding the use of %n, but this is what
I could make from it myself... 
So if somebody could enlighten me, I would be very thankful.

Thanks !

Geert  Geurts 
Universiteit Leiden
Afdeling Middleware
Tel:071-5276873


RE: [users@httpd] LogFormat %{FOOBAR}n note

Posted by "Geurts, G.P.T.M." <g....@i-groep.leidenuniv.nl>.
Thanks Eric!
I don't have time right now to look in to your response... It's 17:00
;-) but I'll look into it tomorrow.
Thanks,

geert

-----Original Message-----
From: Eric Covener [mailto:covener@gmail.com] 
Sent: dinsdag 1 september 2009 14:59
To: users@httpd.apache.org
Subject: Re: [users@httpd] LogFormat %{FOOBAR}n note

On Tue, Sep 1, 2009 at 6:58 AM, Geurts,
G.P.T.M.<g....@i-groep.leidenuniv.nl> wrote:
> Hello list,
> I'm working on customised logging for our http servers, one thing I 
> was unable to find information about is the %{FOOBAR}n option for 
> LogFormat. The documentation says it's the contense of note FOOBAR
from another module....
> But what is that exacly and wich modules contain notes? And why could 
> that be interesting to log? Why not open the note of the module if you

> want to know it?

Example: The core sets %{error-notes}n with some extended error info
during some error responses (sometimes the same additional info passed
in the error response). This might help you differentiate between a few
different type of 400 responses.

AuthBasicProvider stashes the name of the module that handled
authentication in a note called "authn_provider_name".

"Why not open it"?  I don't think this makes any sense.  Modules post
these notes to whoever might want to view them (logging, or passing
messages between modules/phases).

> I'm probably completely misunderstanding the use of %n, but this is 
> what I could make from it myself... So if somebody could enlighten me,
I 
> would be very thankful.

If you're not working on a module that documents adding some note that
night be of interest, you wouldn't be logging it.

--
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] LogFormat %{FOOBAR}n note

Posted by Eric Covener <co...@gmail.com>.
On Tue, Sep 1, 2009 at 6:58 AM, Geurts,
G.P.T.M.<g....@i-groep.leidenuniv.nl> wrote:
> Hello list,
> I'm working on customised logging for our http servers, one thing I was
> unable to find information about is the %{FOOBAR}n option for LogFormat. The
> documentation says it's the contense of note FOOBAR from another module….
> But what is that exacly and wich modules contain notes? And why could that
> be interesting to log? Why not open the note of the module if you want to
> know it?

Example: The core sets %{error-notes}n with some extended error info
during some error responses (sometimes the same additional info passed
in the error response). This might help you differentiate between a
few different type of 400 responses.

AuthBasicProvider stashes the name of the module that handled
authentication in a note called "authn_provider_name".

"Why not open it"?  I don't think this makes any sense.  Modules post
these notes to whoever might want to view them (logging, or passing
messages between modules/phases).

> I'm probably completely misunderstanding the use of %n, but this is what I
> could make from it myself…
> So if somebody could enlighten me, I would be very thankful.

If you're not working on a module that documents adding some note that
night be of interest, you wouldn't be logging it.

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org