Easily make assertions about logged messages in tests