Have emit write to a io.Writer