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 ...