コード例 #1
0
ファイル: Logger.java プロジェクト: OPSF/uClinux
  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);
    }
  }
コード例 #2
0
ファイル: Logger.java プロジェクト: OPSF/uClinux
  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);
    }
  }