All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.log4j.H2OPropertyConfigurator Maven / Gradle / Ivy

There is a newer version: 3.8.2.9
Show newest version
package org.apache.log4j;

import org.apache.log4j.spi.LoggerRepository;

import java.util.Properties;

/**
 * Append to an existing live log4j configuration rather than to create a new one
 * with a new complete properties file.
 *
 * This is used by embedded environments like Sparkling Water that don't want to
 * blindly clobber the parent logger configuration.
 */
public class H2OPropertyConfigurator extends PropertyConfigurator {
  @Override
  public
  void doConfigure(Properties properties, LoggerRepository hierarchy) {
    parseCatsAndRenderers(properties, hierarchy);

    // We don't want to hold references to appenders preventing their
    // garbage collection.
    registry.clear();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy