Added logging support to socode project.