The back-office team of our client has an active slack based workflow for most of their systems. As this middleware is going to be another system that they need to keep track of, they asked us to send messages on Slack if the middleware encounters an error during its operation. In this blog post, I am going to share how we did it in Clojure using Timbre.
This blog post is a part 5 of the blog series Building an E-Commerce Marketplace Middleware in Clojure.
In the last blog post, we configured Timbre to log the events in the Console. In this blog post, we are going to add a database appender to persist the domain level events alone in Postgres using Toucan.
This blog post is a part 4 of the blog series Building an E-Commerce Marketplace Middleware in Clojure.
Adding Migration Script Let’s get started by adding the migration script to create the event table in the database.
In the first two blog posts of the blog series Building an E-Commerce Marketplace Middleware in Clojure, we learnt how to bootstrap a Clojure project using Mount & Aero and how to configure database connection pooling & database migration along with reloaded workflow. We are going to continue setting up the infrastructure, and in this blog post, we are going to take up logging using Timbre.
Timbre is a Clojure/Script logging library that enables to configure logging using a simple Clojure map.