method.invoke(logs.nextElement(), args);
method.invoke(log, args);
    public void  invoke (Method method, Object[] args) {        try {            if (localLog!=null)                method.invoke(localLog,args);        }catch (Throwable thr){            if (localLog!=null)                     localLog.error("Error Invoke LogImpl",thr);                 else thr.printStackTrace();        }        //Registered logs        synchronized (registeredLogs){            Log log=null;            Enumeration logs = registeredLogs.elements();            while (logs.hasMoreElements()){                try {                    log = (Log) logs.nextElement();                    if (isCurrentLevelEnabled(log)) {                        method.invoke(logs.nextElement(), args);                    }                } catch (Throwable thr) {                    if (log!=null) log.trace("",thr);                    else if (localLog!=null)                        localLog.trace("",thr);                    else thr.printStackTrace();                }            }        }    }