Re: [squid-users] helper output in logs

From: Alfredo Rezinovsky <alfrenovsky_at_gmail.com>
Date: Sun, 04 Aug 2013 15:46:45 -0300

El 02/08/13 18:03, Amos Jeffries escribió:
> On 3/08/2013 3:37 a.m., Alfredo Rezinovsky wrote:
>> I'm using store_id_program and I want my program to ouput a Key/Value
>> pair so the value goes in the logs
>>
>> I tried with "log" and "tag" keys and using "%[et" and "%[ea" in
>> LogFormat but it didn't worked.
>>
>> There's a generic Key/Value handling or each helper needs a special
>> support ?
>
> See the new %note token. The intention is to make the keys sent back
> available as annotations, including custom ones from any helper.
> It is not quite working for all helpers yet (assistance with that
> welcome), but should be working for the store-ID ones.
>
The "%{my_key}note" in logformat worked exactly as I wanted.
It does work with store-id keys

Thanks.
Received on Sun Aug 04 2013 - 18:46:59 MDT

This archive was generated by hypermail 2.2.0 : Mon Aug 05 2013 - 12:00:17 MDT