Dirty logging with class