add simple logging support.