mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Ludovic Poitou
17.32.2015 4b6eae2b88b5a5abc3bc7bcee205ecf033675a0f
opendj-server-legacy/src/main/java/org/opends/quicksetup/QuickSetupLog.java
@@ -44,8 +44,7 @@
  private static FileHandler FILE_HANDLER;
  /**
   * Creates a new file handler for writing log messages to the file indicated
   * by <code>file</code>.
   * Creates a new file handler for writing log messages to the file indicated by <code>file</code>.
   *
   * @param file
   *          log file to which log messages will be written
@@ -68,8 +67,7 @@
  }
  /**
   * Creates a new file handler for writing log messages of a given package to
   * the file indicated by <code>file</code>.
   * Creates a new file handler for writing log messages of a given package to the file indicated by <code>file</code>.
   *
   * @param file
   *          log file to which log messages will be written.
@@ -115,6 +113,16 @@
    return LOG_FILE != null;
  }
  /** Closes the log file and deletes it. */
  public static void closeAndDeleteLogFile()
  {
    if (LOG_FILE != null)
    {
      FILE_HANDLER.close();
      LOG_FILE.delete();
    }
  }
  private static String getInitialLogRecord()
  {
    // Note; currently the logs are not internationalized.