Logging leaks to other parts (vtk9.0.1)
It is possible to redirect VTK output to a file, using e.g.:
/** Redirect VTK log to a file */
output = new vtkFileOutputWindow();
output.SetFileName(currentFilePath);
vtkOutputWindow outputWindow = new vtkOutputWindow();
outputWindow.SetInstance(output);
outputWindow.Delete();
This worked fine with VTK-8.2. However sinc VTK-9 the redirected messages also appear on the console (windows) or end up in the .xsessions-error (linux). A sample message looks like this:
2020-09-04 15:30:32.611 ( 116.523s) [ 28E36700]vtkDemandDrivenPipeline:668 ERR| vtkCompositeDataPipeline (0x7f91a5cb32e0): Input port 0 of algorithm
To be clear, I am not talkign about the message itself, I am talking about the redirection "leaking" to other parts.