Added writing of more log fields