[erlang-questions] logging with email output

Ulf Wiger ulf@REDACTED
Thu Nov 20 23:18:24 CET 2008


What we did in the AXD 301 in order to catch infrequent crashes,
was to keep a process that correlated crashes based on registered
name. Supervisors will trigger on rapidly restarting processes, but
we also wanted a report on processes that restart only now and then.

BR,
Ulf W

2008/11/20 Adam Duston <adam@REDACTED>:
> Thanks, I've seen this before. Allow me to ask the question in a
> different way. Suppose you deploy an application, and there is a bug
> that only appears under certain circumstances. The circumstances don't
> occur for the first few days, but then the number of users increases
> and a gen_server starts crashing every few minutes, each time getting
> restarted by the supervisor. This could happen, for example, if there
> is a situation that produces deadlock and gen_server calls start
> timing out. Of course, each time a message is written to the SASL log.
> Am I expected to use rb to read through the SASL log on a daily basis?
> I can't imagine that I'm the first one facing this problem. How have
> people dealt with this in the past?
>
> Thanks again,
> Adam
>
> On Thu, Nov 20, 2008 at 3:54 PM, Gleb Peregud <gleber.p@REDACTED> wrote:
>> There's a log4j clone for Erlang:
>>
>> http://code.google.com/p/log4erl/
>>
>> But it seems it does not have a email logger, though it shouldn't be
>> too hard to write one,
>>
>> BR
>>
>> On 11/20/08, Adam Duston <adam@REDACTED> wrote:
>>> In my Java application, I can use an email logging target with log4j
>>> and then, when an exception occurs, an email is politely delivered to
>>> my inbox. In my Erlang app, I'm logging info and errors using
>>> error_logger. I would like to be notified by email when one of my
>>> gen_servers trips badly enough to shutdown and get restarted by the
>>> supervisor. What is the idiomatic way to do this?
>>>
>>> Thanks,
>>> Adam
>>>
>>> --
>>> Founder, 8 Planes
>>> adam@REDACTED
>>> Skype: aduston
>>> _______________________________________________
>>> erlang-questions mailing list
>>> erlang-questions@REDACTED
>>> http://www.erlang.org/mailman/listinfo/erlang-questions
>>>
>>
>>
>> --
>> Gleb Peregud
>> http://gleber.pl/
>>
>> Every minute is to be grasped.
>> Time waits for nobody.
>> -- Inscription on a Zen Gong
>>
>
>
>
> --
> Founder, 8 Planes
> adam@REDACTED
> Skype: aduston
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list