Made logger a class instance