<div dir="ltr"><div>On the one hand, I can see that it is useful to have a message macro that doesn't require a debug build.  In my own apps, I often write app-specific classes that are derived from vtkObject and this is a macro that I might use from time to time.  Unlike Berk, I'm not all that worried that it might be abused.  For VTK, we have code review.</div><div><br></div><div>On the other hand, I don't think we have a use case for this within VTK itself, it would be there purely to serve external VTK classes and apps.  And people who need this feature could simply put this macro (or a similar one) in their own header files.</div><div><br></div><div>Summary: this is a convenience feature, IMHO a mostly harmless one, and one that I might use.</div><div><br></div><div> - David</div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 12, 2014 at 6:27 AM, Berk Geveci <span dir="ltr"><<a href="mailto:berk.geveci@kitware.com" target="_blank">berk.geveci@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I disagree with this change. There is no compelling VTK specific example for why this is needed. The examples are all from Slicer - which to me says that they can be implemented in Slicer.<div><br></div><div>Adding a logging functionality without clear guidelines on how to use it is dangerous. It can lead to folks using it for debugging in performance critical sections and since it is not compiled out in Release builds, it can lead to significant performance issues, specially in multi-threaded code. As it is, there are lot of minor issues like this that we will have to go and clean up (progress being one of them).</div><div><br></div><div>The main use case seems to be tracking interaction/workflow changes. My suggestion is to employ a method appropriate to that. For example, events and listeners.</div><div><br></div><div>Best,</div><div>-berk</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Thu, Dec 11, 2014 at 12:06 PM, Jean-Christophe Fillion-Robin <span dir="ltr"><<a href="mailto:jchris.fillionr@kitware.com" target="_blank">jchris.fillionr@kitware.com</a>></span> wrote:</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div><div><div>Hi Folks, <br><br></div>While developing 3D Slicer, we created a macro named <br><br>                                          vtkInfoMacro<br><br>similar to "vtkErrorMacro/vtkDebugMacro/vtkWarningMacro".<br><br><br></div><div>We would like to contribute it back to VTK core.<br></div><div><br><br><br></div>The associated topic is: <br><br>                      <a href="http://review.source.kitware.com/#/c/18385/" target="_blank">http://review.source.kitware.com/#/c/18385/</a><br><br><br></div>It would be great to get feedback before moving forward.<br><br></div>Thanks<span><font color="#888888"><br></font></span></div><span><font color="#888888"><div>Jc</div></font></span></div></div></div></blockquote></div></div></blockquote></div></div></div></div>