1 -module (lwes_emitter_stdout
).
3 -behaviour (lwes_emitter
).
12 -record (lwes_emitter_stdout
, {config
}).
15 #lwes_emitter_stdout
{ config
= Config
}.
17 id(#lwes_emitter_stdout
{config
= [{label
,B
}]}) ->
21 lwes_event:to_binary(Event
).
23 emit (L
, Event
) when is_list(L
) ->
24 [ emit(E
, Event
) || E
<- L
];
25 emit (#lwes_emitter_stdout
{}, E
) ->
26 io:format("Emit event ~p for ~p~n",[E
,?MODULE
]),
29 close (#lwes_emitter_stdout
{}) ->