[99s-extend] REALLY SOLVED -- Re: SOLVED -- Re: "access.log" for Cowboy

Brown, Kevin Kevin.Brown at turner.com
Mon May 20 20:54:20 CEST 2013


Would there be any interest in an access_combined log format?

http://httpd.apache.org/docs/2.2/logs.html



On 5/15/13 9:47 AM, "Ivan Uemlianin" <ivan at llaisdy.com> wrote:

>Thanks!  That works for me too: it was the "{level, none}" that did it.
>(I've also spruced up my syntax for lager 2.*)
>
>Thanks for your help and patience.
>
>Ivan
>
>
>On 15/05/2013 14:33, Adam Rutkowski wrote:
>>
>> On 15 May 2013, at 14:43, Ivan Uemlianin wrote:
>>
>>> Thanks for this.  I've tried it.  It seems to be adding a trace to an
>>>already existing log file (which is already handling log messagse of a
>>>certain level).  e.g., it uses lager:trace not lager:trace_file.
>>>
>>> I can't set it up so the trace file receives *only* trace messages.
>>>I'l revert to the lager:trace_file call.
>>
>> The following setup works for me:
>>
>> [
>>
>> {lager, [
>>      {colored, true},
>>      {handlers, [
>>        {lager_console_backend, info},
>>        {lager_file_backend, [
>>                  {file, "log/error.log"}, {level, error}, {size,
>>10485760}, {date, "$D0"}, {count, 5}]},
>>        {lager_file_backend, [
>>                  {file, "log/cdr.log"}, {level, none}, {size, 1000},
>>{date, "$D0"}, {count, 5}]}
>>        ]},
>>      {crash_log, "log/crash.log"},
>>
>>
>> {traces,
>> [
>> {{lager_file_backend, "log/cdr.log"}, [{type, cdr}], debug}
>> ]}
>>
>> ]}
>>
>>
>> ].
>>
>> Hope it helps, take care.
>> A.
>>
>
>-- 
>============================================================
>Ivan A. Uemlianin PhD
>Llaisdy
>Speech Technology Research and Development
>
>                     ivan at llaisdy.com
>                      www.llaisdy.com
>                          llaisdy.wordpress.com
>               github.com/llaisdy
>                      www.linkedin.com/in/ivanuemlianin
>
>                         festina lente
>============================================================
>_______________________________________________
>Extend mailing list
>Extend at lists.ninenines.eu
>http://lists.ninenines.eu:81/listinfo/extend
>





More information about the Extend mailing list