...
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="UTF-8"?> <contentUpdateChecker xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/contentUpdateChecker.xsd"> <url>http://matroos.deltares.nl/direct/get_anal_times.php?database=maps&source=knmi_h11_v72&most_recent=1</url> <user>gebruiker</user> <password>wachtwoord</password> <eventCode>HirlamMeteo.NewData</eventCode> <messagePrefix> New data for hirlam meteo for T0: </messagePrefix> <interval unit="second"/> <timeout unit="minute"/> </contentUpdateChecker> |
Sample input and output
Example of A url returning as plain text a timestamp of most recent available data in format yyyyMMddHHmm, will result in the following logging (including debug).
When when the event code has not been logged before:
11-07-2014 09:54:51 DEBUG - No logging of event code HirlamMeteo.NewContent because data still equals: 201407110600
11-07-2014 09:54:47 DEBUG - No logging of event code HirlamMeteo.NewContent because data still equals: 201407110600
11-07-2014 09:54:45 INFO - HirlamMeteo.NewContent: New data for hirlam meteo for T0: $$201407110600
11-07-2014 09:54:44 DEBUG - No content found in database for event code: HirlamMeteo.NewContent
Example of logging (including debug) when When the event code has been logged before and content is still the same:
...