static class TestRegionServerReportForDuty.LogCapturer extends Object
GenericTestUtils.LogCapturer
except that this implementation has a default appender to the root logger.
Hadoop 2.8+ supports the default appender in the LogCapture it ships and this can be replaced.
TODO: This class can be removed after we upgrade Hadoop dependency.Modifier and Type | Field and Description |
---|---|
private org.apache.log4j.WriterAppender |
appender |
private org.apache.log4j.Logger |
logger |
private StringWriter |
sw |
Constructor and Description |
---|
LogCapturer(org.apache.log4j.Logger logger) |
private StringWriter sw
private org.apache.log4j.WriterAppender appender
private org.apache.log4j.Logger logger
LogCapturer(org.apache.log4j.Logger logger)
public void stopCapturing()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.