Testable Logs

Every week in my Tuesday Lunch & Learn livestream, we choose a useful software development skill, define a challenge related to that skill, and solve the challenge live. This week, we’re building a testable logger.

The Log class we’re building this week is high-level infrastructure. High-level infrastructure is just like normal infrastructure, except that it uses code we’ve already written rather than talking to the outside world directly. So for today’s episode, we’re tying together a lot of the concepts from previous episodes. We end up with a lovely utility that makes testing logging a breeze.

To follow along, download the code from GitHub and check out the 2020-08-11 tag. To see the final result, check out the 2020-08-11-end tag or view it on GitHub.

Visit the Lunch & Learn archive for more.

If you liked this entry, check out my best writing and presentations, and consider subscribing to updates by email or RSS.