[squid-users] logformat: override %tg, but keep subsecond resolution

Andreas Hasenack andreas at canonical.com
Thu Apr 23 13:00:57 UTC 2020


On Thu, Apr 23, 2020 at 6:57 AM Amos Jeffries <squid3 at treenet.co.nz> wrote:
>   %tg{%F %H:%M:%S}.%03tu %tg{%z}
> Or, since the timezone is always expected to be "+0000" you can just
> configure this and save CPU cycles looking up the timezone offset:
>  logformat customTime %tg{%F %H:%M:%S}.%03tu +0000

Thanks! Worked perferctly

More information about the squid-users mailing list