Logger code review changes

cc @josevalim @chrismccord