Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Operator Client
  • Stand Alone
logging -

...

eventLogs

Since 2014.01 it is possible to send errors from the OC/FSS/standalone client to the windows or linux event log. In order to The following example demonstrate how activate this , enable this option.for an OC or FSS, simply
add the following option to the clientConfig.xml.

Code Block
xml
xml

<?xml version="1.0" encoding="UTF-8"?>
<clientConfiguration 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/clientConfig.xsd">
	<clientType>Operator Client</clientType>

 <logging>
        <windowsEventLogEnabled>true</windowsEventLogEnabled>
        <linuxSyslogFacility>local6</linuxSyslogFacility>
   </logging>
</clientConfiguration>

If for instance a custom adapter is required to log to this facility, the adapter should log using log4j with a Syslog prefix in the message, e.g.

Code Block

log.error("Syslog.Adapter: missing file");

Anchor
_Toc154574492
_Toc154574492
Anchor
_Toc95297325
_Toc95297325
LogConfig

...