appenderResource.addProperty(LoggingConstants.AppenderProperties.THRESHOLD, "DEBUG");
}
}
if (appender instanceof SyslogAppender) {
SyslogAppender syslogAppender = (SyslogAppender) appender;
// if user has not set these properties system automatically assign default values
appenderResource.addProperty(LoggingConstants.AppenderProperties.SYS_LOG_HOST,
syslogAppender.getSyslogHost());
appenderResource.addProperty(LoggingConstants.AppenderProperties.FACILITY,
syslogAppender.getFacility());
appenderResource.addProperty(LoggingConstants.AppenderProperties.IS_SYS_LOG_APPENDER,
Boolean.toString(true));
} else {
appenderResource.addProperty(LoggingConstants.AppenderProperties.IS_SYS_LOG_APPENDER,
Boolean.toString(false));