Rewire the logic for choosing what to use for logging. Closes #59.

Don't have time to test it right now, but here is what I put together given the discussion in #59.