/** * get the log wrapper class (its type is dependent on the exceptionGroup) for the given log domain and exception * group in this ORB instance. */ public LogWrapperBase getLogWrapper(String logDomain, String exceptionGroup, LogWrapperFactory factory) { StringPair key = new StringPair(logDomain, exceptionGroup); LogWrapperBase logWrapper = wrapperMap.get(key); if (logWrapper == null) { logWrapper = factory.create(getLogger(logDomain)); wrapperMap.put(key, logWrapper); } return logWrapper; }
/** * get the log wrapper class (its type is dependent on the exceptionGroup) for the given log domain and exception * group in this ORB instance. */ public LogWrapperBase getLogWrapper(String logDomain, String exceptionGroup, LogWrapperFactory factory) { StringPair key = new StringPair(logDomain, exceptionGroup); LogWrapperBase logWrapper = wrapperMap.get(key); if (logWrapper == null) { logWrapper = factory.create(getLogger(logDomain)); wrapperMap.put(key, logWrapper); } return logWrapper; }