Improving logging format and adding valuable info to be logged.