added logging module.
added logging module.