Article delegate-en/4503 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: DeleGate: question regarding the PROTOLOG parameters
04 Jul 2009 23:00:12 GMT (Yutaka Sato)
The DeleGate Project


In message <_A4502@delegate-en.ML_> on 07/05/09(03:19:49)
you "Kopplinger, Andreas" <> wrote:
 |With ":format" and "%{field}", i am refering to the following part of the DeleGate Manpages. 
 |I would like to add some of these parameters to PROTOLOG='${LOGDIR}/Protolog_${PORT}.${PROTO}[date+.%d]' command. 

For example, you can put a log line of the common logfile format extended
with Referer, User-Agent and Via fields with DeleGate's extension as this:

  PROTOLOG=':%X "%{Via}" %D'

Of course you can specify your logfile name pattern with this as follows:

  PROTOLOG='${PORT}.${PROTO}[date+.%d]:%X (%{Via})'

 |HTTP Transfer Log Format
 |      The format of PROTOLOG for HTTP protocol can be modified with a
 |optional format specification postfixed after the LogFilename as
 |PROTOLOG="LogFilename:format". In this case, default file name can be
 |omitted. For example, PROTOLOG=":%X" specifies making a NCSA like extended
 |common logfile format. The default format is PROTOLOG=":%C %D".
 |            %X	== '%C "%r" "%u"' common logfile format with Referer and User-Agent
 |            %{field}	-- arbitrary field in the request message 

  9 9   Yutaka Sato <>
 ( ~ )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]