Skip to content

climvalencia/fluent-logger-erlang

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fluent-logger-erlang
====================

erlang logger using gen_event to output to fluent.

first example:

> {ok,_Pid}=gen_event:start({local, yourlogger}),
> ok = gen_event:add_handler(?MODULE, fluent_event, debug),
> ok = gen_event:notify(?MODULE, {debug, {[{<<"hoge">>,<<"data">>}]}}),

Now I am thinking of better interface.

TODO
====

- better interface (accepting proplist-like map only, binary() or string()? )
- tests
- unknown failure in Lion: 
=ERROR REPORT==== 9-Oct-2011::00:07:27 ===
** Generic server inet_gethost_native_sup terminating 
** Last message in was {'EXIT',<0.94.0>,killed}
** When Server state == {state,inet_gethost_native,undefined,<0.94.0>,
                               {local,inet_gethost_native_sup}}

Releases

No releases published

Packages

No packages published

Languages

  • Erlang 100.0%