Log sink implementation. Fixes #351

Okay.