Add logging

Yes, that's a good idea. I suppose I should just worry: do I then need to do extra work to guarantee log ordering, or does Node's scheduler guarantee order?