public static ProcessHandler getDefaultHandler ( Logger logger ) { return LegacyProcessHandler . builder ( ) . addStdErrLineListener ( logger :: lifecycle ) . addStdOutLineListener ( logger :: lifecycle ) . setExitListener ( new NonZeroExceptionExitListener ( ) ) . build ( ) ; }
Create a return a new default configured process handler .