<div dir="ltr">+1. The loguru outputs I've seen are very nice.<br><br>I tend to find the vtkObject::Debug logging to be largely useless, as it prints very verbose information and it's usually easier to just add a manual print statement when something like this is needed. Source modification is usually needed to set the Debug flag on, and at that point, why not just dump the exact piece of info we care about, when we care about it? I<br><br>Something that would let us categorize the log entries ('rendering' for mappers/renderers, 'pipeline' for executive info, 'filter' for algorithm details, 'dataset' for dataset changes, 'verbose' for every-little-set-and-get-ever) to more easily filter out the stuff we're not interested in would be fantastic.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 7, 2018 at 1:03 PM, Andras Lasso <span dir="ltr"><<a href="mailto:lasso@queensu.ca" target="_blank">lasso@queensu.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div>
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12.0pt;line-height:1.3;color:#1f497d">
VTK has already a logging API that sends messages to stdout/stderr by default but it can be easily configured to send messages to any logging system. Do you mean you would keep the current logging API and just change the default logging backend to something
 more sophisticated?<br>
<br>
Somewhat related issue: For me, it has never been completely clear how VTK debug logs could be used in practice, as most often it is very difficult to set DebugOn for an object (or group of relevant objects). It would be probably better to enable logging by
 default for all objects and split current debug level to 3 levels (info/debug/trace) for better control of verbosity.<br>
<div><br>
</div>
<div id="m_-9024494207616413068x_signature-x" class="m_-9024494207616413068x_signature_editor" style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12.0pt;color:#1f497d">
Andras<br>
</div>
</div>
<div id="m_-9024494207616413068x_quoted_header" style="clear:both">
<hr style="border:none;height:1px;color:#e1e1e1;background-color:#e1e1e1">
<div style="border:none;padding:3.0pt 0cm 0cm 0cm"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif'"><b>From:</b> "Scott, W Alan via vtk-developers" <<a href="mailto:vtk-developers@public.kitware.com" target="_blank">vtk-developers@public.<wbr>kitware.com</a>><br>
<b>Sent:</b> Tuesday, August 7, 2018 6:38 PM<br>
<b>To:</b> Ayachit, Utkarsh (External Contacts); <a href="mailto:vtk-developers@vtk.org" target="_blank">vtk-developers@vtk.org</a><br>
<b>Subject:</b> Re: [vtk-developers] [EXTERNAL] Support for logging<br>
</span></div>
</div>
<br type="attribution">
</div>
<font size="2"><span style="font-size:11pt">
<div class="m_-9024494207616413068PlainText"><div><div class="h5">Great idea.  For someone that doesn't know where to place breakpoints, but has to try to debug datasets that cannot be sent to Kitware, this would be incredibly valuable.<br>
<br>
Alan<br>
<br>
______________________________<wbr>__________<br>
From: vtk-developers <<a href="mailto:vtk-developers-bounces@public.kitware.com" target="_blank">vtk-developers-bounces@<wbr>public.kitware.com</a>> on behalf of Utkarsh Ayachit <<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>><br>
Sent: Tuesday, August 7, 2018 8:29 AM<br>
To: <a href="mailto:vtk-developers@vtk.org" target="_blank">vtk-developers@vtk.org</a><br>
Subject: [EXTERNAL] [vtk-developers] Support for logging<br>
<br>
Folks,<br>
<br>
Of late I've been finding myself needing some sort of logging support<br>
when debugging complex issues in ParaView and the more I thought about<br>
it, the more I realized it should really be in VTK too and hence this<br>
email.<br>
<br>
I wonder what folks thought about adding support for generating logs<br>
to VTK. This goes beyond the vtkTimerLog we currently have.<br>
vtkTimerLog is great to log filter execution times etc. but it lacks<br>
features like levels of verbosity, among others that are needed in a<br>
general purpose logging infrastructure. We could potentially make<br>
vtkTImerLog use the chosen logging infrastructure under the covers,<br>
but that's a separate discussion and not entirely relevant to the<br>
topic at hand.<br>
<br>
To illustrate a case where this is useful in VTK: has anyone ever<br>
tried to debug why a filter is re-executing? One often ends up in the<br>
weeds of vtkExecutive and subclass and is fraught with frustration.<br>
Now, imagine that the vtkExecutive subclass just generated a log<br>
indicate which pipeline pass it's executing, and why -- things would<br>
be so easy! The log could be added only at higher levels of verbosity,<br>
thus not pollute application logs with internal details, but would be<br>
easily generate-able/accessible when needed. Same is true for<br>
rendering pipelines, determining if the VBOs, for example, are being<br>
regenerated and why can be easily logged and aid tracking down<br>
performance issues.<br>
<br>
If we are convinced of the need for a logging support, then the<br>
question becomes which logging library to use? I have been using for<br>
loguru[1] with great success for a multi-threaded app. I love it's<br>
output generation style, plus how well it handles logs from multiple<br>
threads. It's C++ friendly, header only, minimal external<br>
dependencies.<br>
<br>
Thoughts? Suggestions?<br>
<br>
Utkarsh<br>
<br>
<br></div></div>
[1] <a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Femilk%2Floguru&amp;data=02%7C01%7Classo%40queensu.ca%7C0d8cae5a8ec54917f3b408d5fc842b32%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636692567166365790&amp;sdata=CiukFppwivi35wrjPasMsrHDDl6qYr4wEhjsnQDWlww%3D&amp;reserved=0" target="_blank">
https://na01.safelinks.<wbr>protection.outlook.com/?url=<wbr>https%3A%2F%2Fgithub.com%<wbr>2Femilk%2Floguru&amp;data=02%<wbr>7C01%7Classo%40queensu.ca%<wbr>7C0d8cae5a8ec54917f3b408d5fc84<wbr>2b32%<wbr>7Cd61ecb3b38b142d582c4efb2838b<wbr>925c%7C1%7C0%<wbr>7C636692567166365790&amp;<wbr>sdata=<wbr>CiukFppwivi35wrjPasMsrHDDl6qYr<wbr>4wEhjsnQDWlww%3D&amp;reserved=<wbr>0</a><br>
______________________________<wbr>_________________<br>
Powered by <a href="https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&amp;data=02%7C01%7Classo%40queensu.ca%7C0d8cae5a8ec54917f3b408d5fc842b32%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636692567166365790&amp;sdata=2knVTY4AKF5un%2BtsHBC6d9IwxdQU3fcg8k2B0F4y6eE%3D&amp;reserved=0" target="_blank">
https://na01.safelinks.<wbr>protection.outlook.com/?url=<wbr>www.kitware.com&amp;data=02%<wbr>7C01%7Classo%40queensu.ca%<wbr>7C0d8cae5a8ec54917f3b408d5fc84<wbr>2b32%<wbr>7Cd61ecb3b38b142d582c4efb2838b<wbr>925c%7C1%7C0%<wbr>7C636692567166365790&amp;<wbr>sdata=2knVTY4AKF5un%<wbr>2BtsHBC6d9IwxdQU3fcg8k2B0F4y6e<wbr>E%3D&amp;reserved=0</a><br>
<br>
Visit other Kitware open-source projects at <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&amp;data=02%7C01%7Classo%40queensu.ca%7C0d8cae5a8ec54917f3b408d5fc842b32%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636692567166365790&amp;sdata=FGooxIKSrpR%2F9M%2BqZSmIbUqWzgTWcmQdCIrCzGac0JI%3D&amp;reserved=0" target="_blank">
https://na01.safelinks.<wbr>protection.outlook.com/?url=<wbr>http%3A%2F%2Fwww.kitware.com%<wbr>2Fopensource%2Fopensource.<wbr>html&amp;data=02%7C01%7Classo%<wbr>40queensu.ca%<wbr>7C0d8cae5a8ec54917f3b408d5fc84<wbr>2b32%<wbr>7Cd61ecb3b38b142d582c4efb2838b<wbr>925c%7C1%7C0%<wbr>7C636692567166365790&amp;<wbr>sdata=FGooxIKSrpR%2F9M%<wbr>2BqZSmIbUqWzgTWcmQdCIrCzGac0JI<wbr>%3D&amp;reserved=0</a><br>
<br>
Search the list archives at: <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtk-developers&amp;data=02%7C01%7Classo%40queensu.ca%7C0d8cae5a8ec54917f3b408d5fc842b32%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636692567166365790&amp;sdata=5yBu79VulvgbW7TSIX5NUsCbR5qUNTliI0U5Ax3yZ%2Bs%3D&amp;reserved=0" target="_blank">
https://na01.safelinks.<wbr>protection.outlook.com/?url=<wbr>http%3A%2F%2Fmarkmail.org%<wbr>2Fsearch%2F%3Fq%3Dvtk-<wbr>developers&amp;data=02%7C01%<wbr>7Classo%40queensu.ca%<wbr>7C0d8cae5a8ec54917f3b408d5fc84<wbr>2b32%<wbr>7Cd61ecb3b38b142d582c4efb2838b<wbr>925c%7C1%7C0%<wbr>7C636692567166365790&amp;<wbr>sdata=<wbr>5yBu79VulvgbW7TSIX5NUsCbR5qUNT<wbr>liI0U5Ax3yZ%2Bs%3D&amp;<wbr>reserved=0</a><span class=""><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
</span><a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Fvtk-developers&amp;data=02%7C01%7Classo%40queensu.ca%7C0d8cae5a8ec54917f3b408d5fc842b32%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636692567166365790&amp;sdata=VOEka8wGfLzP3j5hAQUVLPFV9XS1CMolWwPCpzSgj3A%3D&amp;reserved=0" target="_blank">https://na01.safelinks.<wbr>protection.outlook.com/?url=<wbr>https%3A%2F%2Fpublic.kitware.<wbr>com%2Fmailman%2Flistinfo%<wbr>2Fvtk-developers&amp;data=02%<wbr>7C01%7Classo%40queensu.ca%<wbr>7C0d8cae5a8ec54917f3b408d5fc84<wbr>2b32%<wbr>7Cd61ecb3b38b142d582c4efb2838b<wbr>925c%7C1%7C0%<wbr>7C636692567166365790&amp;<wbr>sdata=<wbr>VOEka8wGfLzP3j5hAQUVLPFV9XS1CM<wbr>olWwPCpzSgj3A%3D&amp;reserved=<wbr>0</a><br>
<br>
______________________________<wbr>_________________<br>
Powered by <a href="https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&amp;data=02%7C01%7Classo%40queensu.ca%7C0d8cae5a8ec54917f3b408d5fc842b32%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636692567166365790&amp;sdata=2knVTY4AKF5un%2BtsHBC6d9IwxdQU3fcg8k2B0F4y6eE%3D&amp;reserved=0" target="_blank">
https://na01.safelinks.<wbr>protection.outlook.com/?url=<wbr>www.kitware.com&amp;data=02%<wbr>7C01%7Classo%40queensu.ca%<wbr>7C0d8cae5a8ec54917f3b408d5fc84<wbr>2b32%<wbr>7Cd61ecb3b38b142d582c4efb2838b<wbr>925c%7C1%7C0%<wbr>7C636692567166365790&amp;<wbr>sdata=2knVTY4AKF5un%<wbr>2BtsHBC6d9IwxdQU3fcg8k2B0F4y6e<wbr>E%3D&amp;reserved=0</a><br>
<br>
Visit other Kitware open-source projects at <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&amp;data=02%7C01%7Classo%40queensu.ca%7C0d8cae5a8ec54917f3b408d5fc842b32%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636692567166365790&amp;sdata=FGooxIKSrpR%2F9M%2BqZSmIbUqWzgTWcmQdCIrCzGac0JI%3D&amp;reserved=0" target="_blank">
https://na01.safelinks.<wbr>protection.outlook.com/?url=<wbr>http%3A%2F%2Fwww.kitware.com%<wbr>2Fopensource%2Fopensource.<wbr>html&amp;data=02%7C01%7Classo%<wbr>40queensu.ca%<wbr>7C0d8cae5a8ec54917f3b408d5fc84<wbr>2b32%<wbr>7Cd61ecb3b38b142d582c4efb2838b<wbr>925c%7C1%7C0%<wbr>7C636692567166365790&amp;<wbr>sdata=FGooxIKSrpR%2F9M%<wbr>2BqZSmIbUqWzgTWcmQdCIrCzGac0JI<wbr>%3D&amp;reserved=0</a><br>
<br>
Search the list archives at: <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtk-developers&amp;data=02%7C01%7Classo%40queensu.ca%7C0d8cae5a8ec54917f3b408d5fc842b32%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636692567166365790&amp;sdata=5yBu79VulvgbW7TSIX5NUsCbR5qUNTliI0U5Ax3yZ%2Bs%3D&amp;reserved=0" target="_blank">
https://na01.safelinks.<wbr>protection.outlook.com/?url=<wbr>http%3A%2F%2Fmarkmail.org%<wbr>2Fsearch%2F%3Fq%3Dvtk-<wbr>developers&amp;data=02%7C01%<wbr>7Classo%40queensu.ca%<wbr>7C0d8cae5a8ec54917f3b408d5fc84<wbr>2b32%<wbr>7Cd61ecb3b38b142d582c4efb2838b<wbr>925c%7C1%7C0%<wbr>7C636692567166365790&amp;<wbr>sdata=<wbr>5yBu79VulvgbW7TSIX5NUsCbR5qUNT<wbr>liI0U5Ax3yZ%2Bs%3D&amp;<wbr>reserved=0</a><span class=""><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
</span><a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Fvtk-developers&amp;data=02%7C01%7Classo%40queensu.ca%7C0d8cae5a8ec54917f3b408d5fc842b32%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636692567166365790&amp;sdata=VOEka8wGfLzP3j5hAQUVLPFV9XS1CMolWwPCpzSgj3A%3D&amp;reserved=0" target="_blank">https://na01.safelinks.<wbr>protection.outlook.com/?url=<wbr>https%3A%2F%2Fpublic.kitware.<wbr>com%2Fmailman%2Flistinfo%<wbr>2Fvtk-developers&amp;data=02%<wbr>7C01%7Classo%40queensu.ca%<wbr>7C0d8cae5a8ec54917f3b408d5fc84<wbr>2b32%<wbr>7Cd61ecb3b38b142d582c4efb2838b<wbr>925c%7C1%7C0%<wbr>7C636692567166365790&amp;<wbr>sdata=<wbr>VOEka8wGfLzP3j5hAQUVLPFV9XS1CM<wbr>olWwPCpzSgj3A%3D&amp;reserved=<wbr>0</a><br>
<br>
</div>
</span></font>
</div>

<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">https://public.kitware.com/<wbr>mailman/listinfo/vtk-<wbr>developers</a><br>
<br>
<br></blockquote></div><br></div>