How can I output custom message in the output window from paraview source code.

How can I output custom message in the output window from paraview source code. (version 5.7.0)
I have tried ‘vtkGenericWarningMarco’ and '‘vtkOutputWindowDisplayText’, but there is no message in the output window.

vtkWarningMacro and vtkErrorMacro should output to the output window.