Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ XR Studio

Logger​.xml

  • Last UpdatedJan 24, 2023
  • 1 minute read

The Logger.xml file content is expressly required by the XR Instructor, but can be used in other cases where producing a log of the simulation is useful.

The InteractionSelector actionPerformedCommand must be set to a command that can understand the source of the action and note it.

For more information, see Log panel.

Code example

This is a code example for Logger.xml.

<patch name="sel" actionPerformedCommand="actionPerformedCommand" />

<Var name="actionPerformedLog" type="sstring" />

<Command name="actionPerformedCommand">

<local name="name" value="[?@%1%.group@!=,@%1%.group@,%1%]" type="sstring" />

<local name="type" value="@%1%.nodeType@" />

<local name="time" value="[*'{0:yy/MM/dd HH.mm.ss}',d:now]" />

<if condition="%2%==check^%3%==started">

<setfield field="actionPerformedLog.value" value="@%time%@ @def:Message.name@: checked @%name%@" />

<else condition="%2%==open^%3%==stopped">

<setfield field="actionPerformedLog.value" value="@%time%@ @def:Message.name@: opened @%name%@ to [*'{0:P1}',n:@%1%.op@]" />

</else>

<!--... -->

</if>

</Command>

Related Links
TitleResults for “How to create a CRG?”Also Available in