if (log.isErrorEnabled()) { log.error("Failed to send event: "+evStr+", cause: "+ex1.getMessage(),ex1);
if (sfLog().isErrorEnabled()) { sfLog().error("Failed to send event: "+evStr+", cause: "+ex1.getMessage(),ex1);
    synchronized public void sendEvent(Object event) {        for (Enumeration e = sendTo.elements(); e.hasMoreElements();) {            EventSink s = (EventSink) e.nextElement();            //System.out.println(sfCompleteName().toString() + " sending " + event + " to " + s.toString());            try {                String infoStr = sfCompleteName().toString()+" sending "+ event+" to "+s.toString();                if (log.isInfoEnabled()) {                    log.info(infoStr);                }                s.event(event);            } catch (Exception ex1) {                String evStr="null event";                if (event!=null ) {                    evStr=event.toString()+"["+event.getClass().toString()+"]";                }                if (log.isErrorEnabled()) {                   log.error("Failed to send event: "+evStr+", cause: "+ex1.getMessage(),ex1);               }            }        }    }