Add `testlog` functionality, closing #20