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

[DeleGate-En] Re: How can I not log some objects of specific extension?
19 Mar 2003 01:05:32 GMT feedback@delegate.org (Yutaka Sato)


On 03/19/03(00:18) you jetteb <psudabdyi-xtqvdm6snljr.ml@ml.delegate.org> wrote
in <_A2171@delegate-en.ML_>
 |Hi! Is it possible that the PROXY server will not logged information
 |when objects of specific extension? We have a HTTP site that have MANY
 |images and we want to know if it could be possible to not log those
 |(only when it's a succes 2XX or 3XX).
 |
 |Is there a way to do that?

With the enclosed patch and the following patch,

  CMAP="image/*:NOLOGCTYPE:*:*:*"

the logging of responses of type "image/gif", "image/jpeg" or so
into PROTOLOG will be suppressed.

Cheers,
Yutaka
--
  @ @ Yutaka Sato <y.sato@delegate.org> http://www.delegate.org/y.sato/
 ( - ) National Institute of Advanced Industrial Science and Technology (AIST)
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller


*** ../dist/delegate8.5.1/src/httplog.c	Wed Jan  8 22:15:33 2003
--- httplog.c	Wed Mar 19 09:57:04 2003
***************
*** 64,69 ****
--- 64,75 ----
  	char request[4*1024],*dp,com[1024],arg[4*1024];
  	char buff[8*1024],*fmt,*fp,fc,fmtb[256],tmp[256];
  	char cstat;
+ 	char types[1024];
+ 
+ 	if( 0 <= find_CMAP(Conn,"NOLOGCTYPE",types) ){
+ 		if( strmatch_list(ctype,types,"",NULL,NULL) )
+ 			return;
+ 	}
  
  	if( (log = HTTPLOG) == NULL )
  		return;

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