<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>[erlang-questions] gen_event + syslog + sysklogd</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

<P><FONT SIZE=2>hi there!<BR>
<BR>
i've seen some of u already answered some questions related<BR>
to the gen_event behaviour and its functions. since i'm new<BR>
to erlang i'd like to ask a question related to that topic<BR>
and i'm grateful for any reply.<BR>
<BR>
currently i'm implementing a logging system using gen_event<BR>
and the syslog-interface to log additional local facilities<BR>
to the linux sysklog-daemon.<BR>
<BR>
1.)<BR>
should my event-manager have a<BR>
supervised handler for each facility and/or for each severity<BR>
to enforce concurrency or is it better to have all events handled<BR>
after one another by only one handler and using clauses to match<BR>
certain conditions?<BR>
<BR>
2.)<BR>
when 'notifying' i assume the event-manager propagates the event to<BR>
all handlers belonging to that manager. shouldn't i use<BR>
'call' instead to already specificly adress the certain handler with my<BR>
request/event in order to avoid passing-around-messages and matching<BR>
against clauses in each handler and therefore conserve performance?<BR>
<BR>
i'm still not very sure which approach makes the most sense, maybe<BR>
some of you can give me a hint or two on how this is realized.<BR>
<BR>
thanx a lot for your time,<BR>
<BR>
cheers, chris</FONT>
</P>

</BODY>
</HTML>