seperation of logging class to make code more OO