Make it easier to redirect logging output.

@rocallahan possibly relevant to your interests.