[squid-users] attempting to disable (or mute) logs

Amos Jeffries squid3 at treenet.co.nz
Thu Mar 21 02:24:51 UTC 2019


On 21/03/19 4:55 am, reinerotto wrote:
>> ***** Please note that setting cache.log to /dev/null is highly dangerous. <
> 
> Interesting. As this is standard when running squid on openwrt.
> Is there any _safe_ method to disable output to cache.log ?
>  

Not to disable, this is the log which receives notices of *critical*
events - such as things which are crashing Squid. If your Squid
cache.log has much content at all there is a major problem to fix rather
than just silencing the log about it.


Placing "debug_options rotate=N" can prevent old cache.log being kept
past log rotation. N being the count of old cache.log to keep.

Your use of "-d 1" command line parameter makes Squid log important as
well as critical events. That may increase the log size a little for
normal use. Again if there is much content being logged that would be a
sign of problems needing to be fixed.

Some important level issues may be outside Squid. So after fixing the
issues you can, simply remove the use of "-d 1".

Amos


More information about the squid-users mailing list