public static void resetSystemError() { if (originalSystemErr != null) { redirectSystemError(originalSystemErr); } }
@Override protected void performInitialize() throws Exception { this.routerStdOut = new RoutedOutputStream<Integer, T>(new ContextClassloaderSelector<T>(), getTargetWriter(), getDefaultTargetStdOut()); this.routerStdErr = new RoutedOutputStream<Integer, T>(new ContextClassloaderSelector<T>(), getTargetWriter(), getDefaultTargetStdErr()); this.recorderStdOut = new ThreadSensitiveRecorderStream(routerStdOut); this.recorderStdErr = new ThreadSensitiveRecorderStream(routerStdErr); // TODO - schuettec - 21.10.2016 : This is not a good but working solution. Selecting targets with more than one // condition is not possible for the moment. Selecting target writers is not possible too. To redirect the // Limbus Maintenance Console to original std/out, this is the only working solution without changing the // architecture. this.filterStdOut = new MaintenanceFilterStream(recorderStdOut); this.filterStdErr = new MaintenanceFilterStream(recorderStdErr); // Redirect system out EngineLauncher.redirectSystemOut(filterStdOut); EngineLauncher.redirectSystemError(filterStdErr); }