Chapter 7. Logging and event handling the Erlang/OTP way
This chapter covers
- Erlang/OTP logging facilities and the SASL application
- Event handling and the gen_event behaviour
- Creating a custom event stream
So, you have the great little cache application you wrote in the previous chapter. It can store key/value pairs for quick retrieval, and it even evicts old entries automatically. It does this in a nice, clean way using various processes, supervisors, and tables. Although the implementation is tidy, a lot is going on within it: the application and the supervisor start up, worker processes come and go, data is stored and fetched, leases time out, and tables are manipulated. But to a user of the application, all this is taking place under the ...
Get Erlang and OTP in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.