The need for the Confirmation is due to the value in the $warningPreference variable, and the level that is defined on the cmdlet.
So the confirm, if you are using the defaults, is normal.
I don't know what you have in $logHost or $logRotate, but for me the cmdlet seems to work, and changes the setting.
The output is also normal, as you can see in the Reference Guide, the Set-AdvancedSettings cmdlet returns the AdvancedSetting object.