Bug fixes and initial commit of common logging interface