Logger code review changes

cc @josevalim @chrismccord
Beautiful.