[99s-extend] REALLY SOLVED -- Re: SOLVED -- Re: "access.log" for Cowboy
Ivan Uemlianin
ivan at llaisdy.com
Wed May 15 15:47:05 CEST 2013
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
============================================================
More information about the Extend
mailing list