[vtk-developers] [EXTERNAL] Support for logging

Andras Lasso lasso at queensu.ca
Tue Aug 7 13:03:40 EDT 2018


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?

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.

Andras
________________________________
From: "Scott, W Alan via vtk-developers" <vtk-developers at public.kitware.com>
Sent: Tuesday, August 7, 2018 6:38 PM
To: Ayachit, Utkarsh (External Contacts); vtk-developers at vtk.org
Subject: Re: [vtk-developers] [EXTERNAL] Support for logging

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.

Alan

________________________________________
From: vtk-developers <vtk-developers-bounces at public.kitware.com> on behalf of Utkarsh Ayachit <utkarsh.ayachit at kitware.com>
Sent: Tuesday, August 7, 2018 8:29 AM
To: vtk-developers at vtk.org
Subject: [EXTERNAL] [vtk-developers] Support for logging

Folks,

Of late I've been finding myself needing some sort of logging support
when debugging complex issues in ParaView and the more I thought about
it, the more I realized it should really be in VTK too and hence this
email.

I wonder what folks thought about adding support for generating logs
to VTK. This goes beyond the vtkTimerLog we currently have.
vtkTimerLog is great to log filter execution times etc. but it lacks
features like levels of verbosity, among others that are needed in a
general purpose logging infrastructure. We could potentially make
vtkTImerLog use the chosen logging infrastructure under the covers,
but that's a separate discussion and not entirely relevant to the
topic at hand.

To illustrate a case where this is useful in VTK: has anyone ever
tried to debug why a filter is re-executing? One often ends up in the
weeds of vtkExecutive and subclass and is fraught with frustration.
Now, imagine that the vtkExecutive subclass just generated a log
indicate which pipeline pass it's executing, and why -- things would
be so easy! The log could be added only at higher levels of verbosity,
thus not pollute application logs with internal details, but would be
easily generate-able/accessible when needed. Same is true for
rendering pipelines, determining if the VBOs, for example, are being
regenerated and why can be easily logged and aid tracking down
performance issues.

If we are convinced of the need for a logging support, then the
question becomes which logging library to use? I have been using for
loguru[1] with great success for a multi-threaded app. I love it's
output generation style, plus how well it handles logs from multiple
threads. It's C++ friendly, header only, minimal external
dependencies.

Thoughts? Suggestions?

Utkarsh


[1] https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Femilk%2Floguru&data=02%7C01%7Classo%40queensu.ca%7C0d8cae5a8ec54917f3b408d5fc842b32%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636692567166365790&sdata=CiukFppwivi35wrjPasMsrHDDl6qYr4wEhjsnQDWlww%3D&reserved=0
_______________________________________________
Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7Classo%40queensu.ca%7C0d8cae5a8ec54917f3b408d5fc842b32%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636692567166365790&sdata=2knVTY4AKF5un%2BtsHBC6d9IwxdQU3fcg8k2B0F4y6eE%3D&reserved=0

Visit other Kitware open-source projects at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queensu.ca%7C0d8cae5a8ec54917f3b408d5fc842b32%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636692567166365790&sdata=FGooxIKSrpR%2F9M%2BqZSmIbUqWzgTWcmQdCIrCzGac0JI%3D&reserved=0

Search the list archives at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtk-developers&data=02%7C01%7Classo%40queensu.ca%7C0d8cae5a8ec54917f3b408d5fc842b32%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636692567166365790&sdata=5yBu79VulvgbW7TSIX5NUsCbR5qUNTliI0U5Ax3yZ%2Bs%3D&reserved=0

Follow this link to subscribe/unsubscribe:
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Fvtk-developers&data=02%7C01%7Classo%40queensu.ca%7C0d8cae5a8ec54917f3b408d5fc842b32%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636692567166365790&sdata=VOEka8wGfLzP3j5hAQUVLPFV9XS1CMolWwPCpzSgj3A%3D&reserved=0

_______________________________________________
Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7Classo%40queensu.ca%7C0d8cae5a8ec54917f3b408d5fc842b32%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636692567166365790&sdata=2knVTY4AKF5un%2BtsHBC6d9IwxdQU3fcg8k2B0F4y6eE%3D&reserved=0

Visit other Kitware open-source projects at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queensu.ca%7C0d8cae5a8ec54917f3b408d5fc842b32%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636692567166365790&sdata=FGooxIKSrpR%2F9M%2BqZSmIbUqWzgTWcmQdCIrCzGac0JI%3D&reserved=0

Search the list archives at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtk-developers&data=02%7C01%7Classo%40queensu.ca%7C0d8cae5a8ec54917f3b408d5fc842b32%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636692567166365790&sdata=5yBu79VulvgbW7TSIX5NUsCbR5qUNTliI0U5Ax3yZ%2Bs%3D&reserved=0

Follow this link to subscribe/unsubscribe:
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Fvtk-developers&data=02%7C01%7Classo%40queensu.ca%7C0d8cae5a8ec54917f3b408d5fc842b32%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636692567166365790&sdata=VOEka8wGfLzP3j5hAQUVLPFV9XS1CMolWwPCpzSgj3A%3D&reserved=0

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtk-developers/attachments/20180807/07e61c3b/attachment-0001.html>


More information about the vtk-developers mailing list