I've used the code you posted, it works fine in 12.5.2.
I don't know what the return codes are, but I can get output using the following values:
/*
3 - show memory related calls
20 - show internal calls
21 - pbl management - by itself, doesn't create log
23 - show internal calls
26 - show internal calls
27 - function pointer loading, structure pointer assigns
29 - object group processing
30 - show function/event calls
32 - show external func calls
34 - show pcode line execution
38 - event queue processing
42 - show internal calls
43 - global symbol references dump
44 - class ref
45 - routine symbol table dump
*/
And one of the values I've tried along the way turns on a logging console, but I haven't figured out which ones (or which specific one) turns it on.