Class 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.

    • 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:
        captureMost in interface CaptureLogs
      • capture

        public void capture​(String... names)
        Adds the given loggers to the capture list
        Specified by:
        capture in interface CaptureLogs
        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