added a common logging class