Updated the logger logic.