I am using PyDev for development and unit-testing of my Python application. As for unit-testing, everything works great except the fact that no content is logged to the logg
This is a small hack but it works for me. Add this code when you want to display captured logs. Remove it after no needed.
self.assertEqual(1, 0)
Example:
def test_test_awesome_function(): print("Test 1") logging.info("Test 2") logging.warning("Test 3") self.assertEqual(1, 0)