normalize logging