added logging cababilities.
added logging cababilities.