Search squid archive

Re: Modifying the log format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ons 2010-12-22 klockan 12:37 -0800 skrev Volker-Yoblick, Adam:

> I'd like to further customize the time format of the local time (%tl) to be %Y/%m/%d:%H:%M:%S %z , but the docs don't make it very clear on how to supply the strftime format argument. Can someone explain what the correct syntax is? I've tried a few ways, but none of them worked.

Condensed squid.conf.documented quote:

        % format codes all follow the same basic structure where all but
        the formatcode is optional.

                % ["|[|'|#] [-] [[0]width] [{argument}] formatcode

        Time related format codes:

	                tl      Local time. Optional strftime format argument
                                default %d/%b/%Y:%H:%M:%S %z


Which gives

%{%Y/%m/%d:%H:%M:%S %z}tl

> 2. I'd like to change the timestamps in my cache_store_log as well. Is this possible?

No.

But most people disable cache_store_log anyway. It adds very little
information unless you are debugging or analyzing specific store
interactions.

Regards
Henrik



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux