[squid-dev] [PATCH] support rotate=N option on access_log

Amos Jeffries squid3 at treenet.co.nz
Sun Jan 18 16:36:44 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This has been comitted as trunk rev.13860.

Amos

On 30/12/2014 1:25 a.m., Amos Jeffries wrote:
> This adds a rotate=N option to access_log directive to set per-log 
> what the retained log count will be. At present it is only used by
> the stdio: logging module, which is also the only one to use 
> logfile_rotate directive.
> 
> If this option is absent (as will be the common case) the log
> rotation defaults to using the value of logfile_rotate directive.
> 
> Also, add missing dump output of other access_log options if they 
> differ from the default.
> 
> The use-cases for this are:
> 
> 1) Unix fifo logging requires all the stdio: module operations
> except that the normal rotate/rename operation is NOT performed on
> the fifo socket. It makes more sense to add this option whih can
> also meet ase #2 than to create a whole new module just for fifo.
> 
> 2) managing only some access_log files with a third-party log
> manager. Those specific logs need rotate=0, but the Squid managed
> logs may require non-0 values.
> 
> Amos
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQEcBAEBAgAGBQJUu+EcAAoJELJo5wb/XPRjevgH/0Fwz/maKMQYpAKQWLh1MQXQ
FVeycIGsG8SDEowVIADMUpYXXX3mFQs8jimjKxuM6OH0XIdOTL/y0eO5jA996rOy
a3QOiaPsz+Cr1Ns33kw17m1EEz2LEla09Ckk27r2dvce2jFX6xPWFe9vJ/FfYaG8
HaGJUo7zpw52hq6CzXPue9byrsseaAVgW1nkUIvApeC77uUrYr4sAf9TZNfvT0Bz
Aq1Ktp4+80Shx/rgZpiMwrVbjUGrR3TYqM3WXTW8D482dEABVzmB2MQMQSppu14r
5MSUCdsifK6j+duKHB7Y2Ye77QUrQ+rjcj7rZw9fLFCF6fW6kbwtf08fm1xGkn8=
=s9Li
-----END PGP SIGNATURE-----


More information about the squid-dev mailing list