コード例 #1
0
ファイル: Options.java プロジェクト: conormcd/exemplar
  /**
   * Allow a UI to notify other parts of the program that it has finished setting all the options
   * that it's going to set.
   */
  public static void setUIFinished() {
    uiFinished = true;

    // Set the special debug flag.
    debug = getBoolean("debug"); // NON-NLS
    if (debug) {
      Log.setLevel(LogLevel.DEBUG);
    }
  }
コード例 #2
0
  /**
   * Sets the minimum {@link LogLevel} to display.
   *
   * <p>This change takes effect right away.
   */
  public static void setLogLevel(String value) {
    sLogLevel = LogLevel.getByString(value);

    Log.setLevel(sLogLevel);
  }