Code refactoring
Change The log which was being made into the object of attribute change.