Class CapturingLogHandler


  • public class CapturingLogHandler
    extends Handler
    This class implements a dummy log handler that allows capturing the log messages.

    This allows checking the contents of the log messages in unit tests.

    • Constructor Detail

      • CapturingLogHandler

        public CapturingLogHandler()
    • Method Detail

      • flush

        public void flush()
        Specified by:
        flush in class Handler
      • close

        public void close()
        Specified by:
        close in class Handler
      • getCapturedData

        public String getCapturedData()
        Get the captured data from the messages
        Returns:
        messages as string
      • reset

        public void reset()
        Reset the capture buffer