try {
String server = stringCfg("zorka.syslog.server", "127.0.0.1");
String hostname = stringCfg("zorka.hostname", "zorka");
int syslogFacility = SyslogLib.getFacility(stringCfg("zorka.syslog.facility", "F_LOCAL0"));
SyslogTrapper syslog = new SyslogTrapper(server, hostname, syslogFacility, true);
syslog.disableTrapCounter();
syslog.start();
ZorkaLogger.getLogger().addTrapper(syslog);
} catch (Exception e) {
log.error(ZorkaLogger.ZAG_ERRORS, "Error parsing logger arguments", e);
log.info(ZorkaLogger.ZAG_ERRORS, "Syslog trapper will be disabled.");