Class DefaultJvmLauncherLoggerRedirector

  • All Implemented Interfaces:
    Runnable

    public class DefaultJvmLauncherLoggerRedirector
    extends Object
    implements Runnable
    Redirects the output of a process into a Logger by periodically pumping data.
    • Constructor Detail

      • DefaultJvmLauncherLoggerRedirector

        public DefaultJvmLauncherLoggerRedirector​(InputStream inputStream,
                                                  Logger outputLogger,
                                                  String category)
        Creates a new redirector.
        Parameters:
        inputStream - the input stream
        outputLogger - The logger to which the output of the JVM is redirected
        category - the log category to use when logging the JVM's outputs
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable