Try to make the note logger work with rails 3 and rails 4