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

boli
14.34.2008 9575eaa5b0cb2e2f3f950ca1a70cb817f979d0b9
opends/src/server/org/opends/server/loggers/ErrorLogger.java
@@ -76,6 +76,14 @@
  // The singleton instance of this class for configuration purposes.
  private static final ErrorLogger instance = new ErrorLogger();
  static
  {
    // Add the default publisher to stdout.
    addErrorLogPublisher(
        TextErrorLogPublisher.getStartupTextErrorPublisher(
            new TextWriter.STDOUT()));
  }
  /**
   * Retrieve the singleton instance of this class.
   *
@@ -130,6 +138,19 @@
  }
  /**
   * Removes first error log publisher from the logger.
   */
  public synchronized static void removeFirstErrorLogPublisher()
  {
    if(!errorPublishers.isEmpty())
    {
      ErrorLogPublisher publisher = errorPublishers.remove(0);
      publisher.close();
    }
  }
  /**
   * Initializes all the error log publishers.
   *
   * @param configs The error log publisher configurations.