Article delegate-en/2182 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]

Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: How can I not log some objects of specific extension?
25 Mar 2003 14:18:23 GMT <pqyeabdyi-7pkjwofqc6fr.ml@ml.delegate.org>


Do this should work even if in reverse HTTP PROXY mode? It doesn't seem to work...

If it's working, do this functionnality will be included in futur release of delegate?

	BJ
_________________________________________________________
Benoit Jette		E-mail: Benoit.Jette@UMontreal..CA


> -----Message d'origine-----
> De : Yutaka Sato [mailto:feedback@delegate.org]
> Envoyé : 18 mars, 2003 20:09
> À : feedback@delegate.org
> Cc : Jette Benoit
> Objet : Re: [DeleGate-En] How can I not log some objects of specific
> extension?
> 
> 
> On 03/19/03(00:18) you jetteb <psudabdyi-7pkjwofqc6fr.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