addLog

add the log of exception