...
Here is an example:
| Code Block | |||||||
|---|---|---|---|---|---|---|---|
| |||||||
<?xml version="1.0" encoding="UTF-8"?>
<Diag xmlns="http://www.wldelft.nl/fews/PI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.wldelft.nl/fews/PI http://fews.wldelft.nl/schemas/version1.0/pi-schemas/pi_diag.xsd" version="1.2">
<!--1 or more repetitions:-->
<line level="0" description="Level 0 message mapped to ERROR" eventCode="EventCode.ERROR"/>
<line level="1" description="Level 1 message mapped to ERROR" eventCode="EventCode.ERROR"/>
<line level="2" description="Level 2 message mapped to WARN" eventCode="EventCode.WARN"/>
<line level="3" description="Level 3 message mapped to INFO" eventCode="EventCode.INFO"/>
<line level="4" description="Level 4 message mapped to DEBUG" eventCode="EventCode.DEBUG"/>
<line level="5" description="Level 5 message mapped to DEBUG" eventCode="EventCode.DEBUG"/>
<line level="0" description="Level 0 message mapped to ERROR" />
<line level="1" description="Level 1 message mapped to ERROR" />
<line level="2" description="Level 2 message mapped to WARN" />
<line level="3" description="Level 3 message mapped to INFO" />
<line level="4" description="Level 4 message mapped to DEBUG" />
<line level="5" description="Level 5 message mapped to DEBUG" />
</Diag>
|
...
The xsd describing the xml format can be found here:
http://fews.wldelft.nl/schemas/version1.0/pi-schemas/pi_diag.xsd![]()
The parser reads the xml file and logs the messages to FEWS according to their log level.
If an event code is present in the element it is used otherwise default event codes are used.
...