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