log Element

This topic describes the <log> XML element.

General syntax
<log message="log messages" level="<loglevel>"/>
DescriptionLogging configuration of the mapping with different log levels. The logs are displayed in CDM.log.
AttributesNameUseAnnotation
messagerequiredLog messages displayed in CDM.log.

Special attribute name and attribute names in single quotes (for example ‘ATTR1’) displays the value of the attribute.

levelrequired

Values are:

  • info
  • warn
  • debug
  • trace
  • error (error message is displayed in an error dialog)

Examples
<log message="info log messages" level="info"/> 
<log message="warn log messages" level="warn" /> 
<log message="debug log messages" level="debug" /> 
<log message="error log messages" level="error" />
 
<test type="specialAttribute" name="part.number" value="C0603-100N-25-5" 
      regexpid="partNumber1"> 

     <test type="attribute" name="PARTVALUE" value=".*" regexpid="test"> 
        <log message="${test.name[0]}: ${test.value[0]}" level="trace" /> 
        <modify target="attribute.value" name="PARTVALUE" value="0,0000001" 
/> 

        <log message="'part.number' - ${test.name[0]}: old: ${test.value[0]} 
                     new: 'MEE_PARTVALUE'" level="trace" /> 
     </test> 
     <log message="'part.number' 'PARTVALUE'" level="info" /> 
</test>