Lager: Logging with Confidence
Logging with Erlang can be fraught with peril. If it isn’t a gen_server with a 10mb binary in its state crashing and OOMing the node as error_logger tries to print its state, it’s your webserver crashing with 10,000 open connections with each one trying to log that it crashed. Or maybe you’re writing an Erlang-powered product and don’t want to scare your customers with scary, giant Erlang tuples in their log messages.
Lager is Basho’s answer to the problems it encountered shipping Riak with the default SASL logger. Lager’s goals are to provide safe, reliable, customer friendly logging with familiar UNIX logfile semantics.
Talk objectives: This talk will cover Lager’s approach for solving the traditional problems with Erlang logging and cover some of the handy extra features it provides.
Target audience: People who have been bitten by Erlang logging in the past, or anyone who is planning on deploying Erlang at scale and isn’t aware of what can go wrong with logging.
Andrew Thompson Riak Guru @ Basho
Basho Technologies Inc.
At Basho, Andrew has been responsible for maintaining the EDS replication product as well as designing and implementing Lager, the popular Erlang logging library used in Riak since 1.0. In his rare free time, he enjoys working on his cars, tinkering with old UNIX hardware and hacking on pointless side projects like re-implementing ancient DOS video games and trying to implement an IMAP server in Erlang.