Replaced deprecated Logger calls.