added logging support for debug and information