Logger code review changes

cc @josevalim @chrismccord
Which syntax error? In general you are not supposed to directly pass structs to raise.