adding details in the log