Reverted logger to take ectx as arg

Began fixing the tests to mock the logger instead of trying to mock stderr &c.
By so doing, output control becomes much easier. As a mild requirement, means
that the logger must not be included with a `from` import in order for test
mocking to be simple.