How to Write Unit Tests for Logging | Hacker News Reader