An OTP application
$ make
1. kafka client
https://github.com/klarna/brod.git
2. lager
https://github.com/erlang-lager/lager
% zookeeper
./bin/zookeeper-server-start.sh config/zookeeper.properties
% kafka server
./bin/kafka-server-start.sh config/server.properties
{lager,
[
{handlers,
[
{lager_kafka_backend, [
{level, info},
{topic, <<"topic">>},
{broker, [{"localhost", 9092}]},
{send_method, async},
{formatter, lager_default_formatter},
{formatter_config, [date, " ", time, " ", message]}
]
}
]
}
]
}