Re: [squid-users] Modifying the log format

From: Henrik Nordström <henrik_at_henriknordstrom.net>
Date: Thu, 23 Dec 2010 01:49:43 +0100

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
Received on Thu Dec 23 2010 - 00:49:47 MST

This archive was generated by hypermail 2.2.0 : Thu Dec 23 2010 - 12:00:04 MST