© Ecky Putrady 2018
Ecky PutradyPractical Web Development with Haskellhttps://doi.org/10.1007/978-1-4842-3739-7_4

4. Logging

Ecky Putrady1 
(1)
Singapore, Singapore, Singapore
 

If you put any system in production, logging is an essential part that you want to get right. Without logging, it would be very hard to troubleshoot production issues that may appear. In this chapter, we will learn about how to do logging in Haskell.

When putStrLn Is Not Enough

The easiest way to get started with logging is to just use putStrLn that comes with ClassyPrelude. After all, logging basically is just printing something while the application is running, right? Well, not quite true. There are various requirements for logging in production scenarios. For starters, you ...

Get Practical Web Development with Haskell: Master the Essential Skills to Build Fast and Scalable Web Applications 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.