24. Detecting Errors with a Log Monitoring Application

Imagine you have a particular bug in production, something that only occurs once a day. When it does occur, you want to know about it right away. You need a tool to monitor the log files and trigger a warning when a bug occurs. What a great opportunity to use Clojure in your day job!


In this chapter we assume you have Leiningen set up on your machine.


The benefit of this chapter is that you learn a way to use Clojure in your day-to-day job when maintaining a production system.

The Recipe—Code

In this recipe we’ll produce a simple Clojure project to read a log file being updated in real time, and we’ll take action if an error is detected. Let’s get started.

1. Create ...

Get Clojure Recipes now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.