Improved log formatting.