Add error logging support