#5: makes LogConnector testable and adds unit test.