Made logger an object