Added log at each log attempt (success or fail).