addPropCategory(t, id, location, name)

Declare a new category of options with id, to be inserted before the category described by location. The category will be available in the dropdown list of categories for the current tool.

def onShowPropsDFP2(t):
    ide.addPropCategory(t,"diagnostics" , "*|toolpack", "Diagnostics")
    ide.addBooleanProperty(t,"script.show_output" , "*|diagnostics|*","Output diagnostic logging","Show diagnostic text in the Output window", False)
    ide.addTextProperty(t,"script.log_level" , "*|diagnostics|*","Diagnostic log level","Set diagnostic level (usually 0 1 or 3)", "0")