Added some details to log functionality.