can find logs even I used log info/warn in the reference scope function of constraints
I used the logs of baseLanguage when I edit the constraints, but can't find any log output in message view or other else.
--------
link {bizcodes}
referent set handler <none>
scope (referenceNode, contextNode, containmentLink, position, linkTarget, operationContext)->Scope {
log info "xxxxxxx hello test of logging", new Exception("xxxxxxxxxxx"); //this is no useful at all
return new ListScope(bizcodes) {
@Override
public string getName(node<> child) {
return child:StringLiteral.value;
}
};
-------------------------
Please sign in to leave a comment.
That is unexpected. I just tried and the message is properly logged. Are you sure the scope function gets invoked?
`log info` logs to the MPS log file (idea.log), `message info` logs to the Messages View.
I get it, it works now, thank you very much