[99s-extend] SOLVED -- Re: "access.log" for Cowboy
Adam Rutkowski
hq at mtod.org
Wed May 15 15:33:28 CEST 2013
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.
More information about the Extend
mailing list