...
Code Block |
---|
|
<?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 enabled, the event logging sents a subselection of all log messages that were logged via log4j to the operating system event log.
The selection includes
*all errors with an event code (string without spaces plus a semi-colon).
*all messages with at least level INFO and the prefix or postfix of the event code contains "Syslog:" or "Syslog." (case insensitive)
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" + filename);
|
Per default the Operator Client logs key events for logins to this facility.
Sample linux configuration (Redhat based system)
Code Block |
---|
# Provides UDP syslog reception
$ModLoad imudp
$UDPServerRun 514
local6.* /var/log/fews.log
|
Anchor |
---|
| _Toc154574492 |
---|
| _Toc154574492 |
---|
|
LogConfig
...