public void logrb( Level level, String sourceClass, String sourceMethod, String bundleName, String message, Throwable thrown) { synchronized (lock) { LogRecord rec = new LogRecord(level, message); rec.setResourceBundleName(bundleName); rec.setSourceClassName(sourceClass); rec.setSourceMethodName(sourceMethod); rec.setThrown(thrown); log(rec); } }
public void logrb( Level level, String sourceClass, String sourceMethod, String bundleName, String message, Object[] params) { synchronized (lock) { LogRecord rec = new LogRecord(level, message); rec.setResourceBundleName(bundleName); rec.setSourceClassName(sourceClass); rec.setSourceMethodName(sourceMethod); rec.setParameters(params); log(rec); } }