Add logging support.