Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added some logic to append to an existing log4j configuration (used by the Sparkling Water case).
- Loading branch information
1 parent
4f04322
commit ce67710
Showing
3 changed files
with
64 additions
and
20 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
h2o-core/src/main/java/org/apache/log4j/H2OPropertyConfigurator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.apache.log4j; | ||
|
||
import org.apache.log4j.spi.LoggerRepository; | ||
|
||
import java.util.Properties; | ||
|
||
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(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters