Class CaptureLogs8
- java.lang.Object
-
- com.identityworksllc.iiq.common.logging.CaptureLogs8
-
- All Implemented Interfaces:
CaptureLogs
public class CaptureLogs8 extends Object implements CaptureLogs
Capture logs in IIQ 8, which uses Log4J 2.x.That version has entirely different Logger semantics, requiring separate code.
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPPENDER_NAME_IDW_WRITERThe name of the appender inserted by this class
-
Constructor Summary
Constructors Constructor Description CaptureLogs8()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcapture(String... names)Adds the given loggers to the capture liststatic voidcaptureLogger(String loggerName)Captures the logger with the given name by replacing its appender with our capturing appender.voidcaptureMost()Captures the majority of the most important loggers in IIQ 8+, as well as a few from IIQCommon itself.
-
-
-
Field Detail
-
APPENDER_NAME_IDW_WRITER
public static final String APPENDER_NAME_IDW_WRITER
The name of the appender inserted by this class- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CaptureLogs8
public CaptureLogs8()
-
-
Method Detail
-
captureMost
public void captureMost()
Captures the majority of the most important loggers in IIQ 8+, as well as a few from IIQCommon itself.- Specified by:
captureMostin interfaceCaptureLogs
-
capture
public void capture(String... names)
Adds the given loggers to the capture list- Specified by:
capturein interfaceCaptureLogs- Parameters:
names- The names of the loggers to capture
-
captureLogger
public static void captureLogger(String loggerName)
Captures the logger with the given name by replacing its appender with our capturing appender.If the appender or logger does not exist, they will be created here.
- Parameters:
loggerName- The logger
-
-