At line 1 changed one line |
The extended logging checkbox can be enabled, then edit the conf/logging.xml file. |
Syslog can be used to send all logging data to a remote syslog server. When enabled a local log file is still maintained and rolled based on the configuration. |
At line 3 changed 81 lines |
Here is an example config for logging to a Kiwi SysLog server: |
|
{{{ |
<?xml version="1.0" encoding="UTF-8"?> |
<Syslog defaultMask="INFO"> |
<Logger name="UNIXSyslogLog" class="com.protomatter.syslog.UNIXSyslogLog"> |
<logServer>172.16.247.130</logServer> |
<Format class="com.protomatter.syslog.SimpleSyslogTextFormatter"> |
<showChannel>false</showChannel> |
<showThreadName>false</showThreadName> |
<showHostName>false</showHostName> |
<dateFormat>MM/dd/yyyy HH:mm:ss</dateFormat> |
<dateFormatCacheTime>1000</dateFormatCacheTime> |
<dateFormatTimeZone>America/Denver</dateFormatTimeZone> |
</Format> |
<Policy class="com.protomatter.syslog.SimpleLogPolicy"> |
<channels>ALL_CHANNEL</channels> |
<logMask>INHERIT_MASK</logMask> |
</Policy> |
</Logger> |
</Syslog> |
}}} |
|
Config for Orion Syslog |
|
{{{ |
<?xml version="1.0" encoding="UTF-8"?> |
<Syslog defaultMask="INFO"> |
<Logger name="UNIXSyslogLog" class="com.protomatter.syslog.UNIXSyslogLog"> |
<logServer>IP of Orion SysLog Server</logServer> |
<port>514</port> |
<facility>0</facility> |
<tag>CrushFTP</tag> |
<showHostname>true</showHostname> |
<messageTemplate>[{SEVERITY}] {CALLER}: {MESSAGE}</messageTemplate> |
<SeverityMap> |
<MapEntry> |
<syslog>DEBUG</syslog> |
<unix>DEBUG</unix> |
</MapEntry> |
<MapEntry> |
<syslog>INFO</syslog> |
<unix>INFO</unix> |
</MapEntry> |
<MapEntry> |
<syslog>WARNING</syslog> |
<unix>WARNING</unix> |
</MapEntry> |
<MapEntry> |
<syslog>ERROR</syslog> |
<unix>ERROR</unix> |
</MapEntry> |
<MapEntry> |
<syslog>FATAL</syslog> |
<unix>EMERGENCY</unix> |
</MapEntry> |
</SeverityMap> |
</Logger> |
</Syslog> |
|
ORIGINAL |
|
<?xml version="1.0" encoding="UTF-8"?> |
<Syslog defaultMask="INFO"> |
<Logger name="UNIXSyslogLog" class="com.protomatter.syslog.UNIXSyslogLog"> |
<logServer>IP of Kiwi SysLog Server</logServer> |
<Format class="com.protomatter.syslog.SimpleSyslogTextFormatter"> |
<showChannel>false</showChannel> |
<showThreadName>false</showThreadName> |
<showHostName>false</showHostName> |
<dateFormat>MM/dd/yyyy HH:mm:ss</dateFormat> |
<dateFormatCacheTime>1000</dateFormatCacheTime> |
<dateFormatTimeZone>America/Denver</dateFormatTimeZone> |
</Format> |
<Policy class="com.protomatter.syslog.SimpleLogPolicy"> |
<channels>ALL_CHANNEL</channels> |
<logMask>INHERIT_MASK</logMask> |
</Policy> |
</Logger> |
</Syslog> |
}}} |
[attachments|syslog.png] |