Normalize logging output