Created logger object for class and modified old log statements to work
with the new logger object.