Why build a logging library?
There are already lots of choices available in other libraries for logging. So why build another logging library? Isn’t this supposed to be a book about TDD?
This is a practical book that shows you how to use TDD in your own projects. And one of the best ways to do that is to use TDD to build a project. We needed a project for this book, and I thought that a logging library would be perfect because we can start out simple and enhance it along the way. A logging library is useful and practical in itself, which also fits the theme of this book.
If you already have your own logging library or are using one you found elsewhere, then this book will still help you to better understand how it works. And you’ll also benefit from the process of building a logging library so that you can apply the same process to your own project.
But we’re not going to settle for a logging library that does what all the other logging libraries do. Following...