Updating to the new logging mechanism