Added a logger class and test case for the same