Re: [squid-users] about logformat (Antony Stone)(Alex Rousskov)

2021-08-17 Thread Pavel Serrat
Oh thanks very much you two, You have helped me a lot, God bless you
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] about logformat

2021-08-15 Thread Alex Rousskov
On 8/15/21 6:25 PM, Pavel Serrat wrote:
> Hello friends
> I'm trying to customize my squid log format and I have the following question:
> What is the difference between %6tr and %tr ???
> What does %03>Hs mean?
> Is the same %03tu as %tu?
> help me please

In addition to what Antony Stone has said, you may find it useful to
study a better documented printf() API. Logformat borrowed most of its
ideas from that formatting specifications. You can use this Wikipedia
article as a starting point:

https://en.wikipedia.org/wiki/Printf_format_string

Alex.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] about logformat

2021-08-15 Thread Antony Stone
On Monday 16 August 2021 at 00:25:45, Pavel Serrat wrote:

> I'm trying to customize my squid log format and I have the following
> question:

See http://www.squid-cache.org/Doc/config/logformat/

% [encoding] [-] [[0]width] [{arg}] formatcode [{arg}]

width   minimum and/or maximum field width:
[width_min][.width_max]
When minimum starts with 0, the field is zero-padded.
String values exceeding maximum width are truncated.

> What is the difference between %6tr and %tr ???

%tr gives you the millisecond response time.
%6tr gives you the millisecond response time padded with spaces to at least 6 
characters.

> What does %03>Hs mean?

It means the HTTP status code sent to the client, padded with zeroes to 3 
characters.

> Is the same %03tu as %tu?

No.

The former is zero-padded to at least three characters, the latter is 
unpadded.

042 is not the same as 42.


Antony.

-- 
Why is "dyslexia" so difficult to spell, and why can I never remember "aphasia" 
when I want to?

   Please reply to the list;
 please *don't* CC me.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


[squid-users] about logformat

2021-08-15 Thread Pavel Serrat
Hello friends
I'm trying to customize my squid log format and I have the following question:
What is the difference between %6tr and %tr ???
What does %03>Hs mean?
Is the same %03tu as %tu?
help me please
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users