Enable assertions in widgetsets built with ide.xml (#14431)

Also add property to customize log level.

Change-Id: I817400aec13fe2b12c382d97b404c08b06dc263a