Improve log output format.