Log.Node(node, verbose)
Returns a string that contains the path of the node passed in the argument. The second argument is optional and inserts the
NodeID
and object type in the returned string.static string Node(IUANodenode, boolverbose);
Arguments
- node(IUANode)
- The node for which the path is to be generated in a string format.
- verbose(bool)
- false(default)
- Does not insert additional information in the string returned.
- true
- Inserts theNodeIDand object type in the string returned.
Returns
- string
- The path of the node passed as the argument. Based on theverboseargument value, it can also contain theNodeIdand the object type.
Examples
The following example shows an API that generates a message consisting of the
string and theError on node
NetLogic path
, returned as a string by the Log.Node
API:Log.Info("Error on node " + Log.Node(LogicObject);
Provide Feedback