py.test plugin to capture log messages
Log messages are captured by default and for each failed test will be shown in the same manner as captured stdout and stderr.
Capturing of logs can be disabled with:
pip install pytest-capturelog
With easy install: