[vtk-developers] [EXTERNAL] Support for logging

Allie Vacanti allison.vacanti at kitware.com
Thu Aug 9 09:36:10 EDT 2018


While we're possibly retooling logging...

I'd love to see the behavior of these macros change to reduce the
verbosity. If we want vtkDebugMacro to log every set and get, ok, but it'd
be nice to have the messages shortened. Right now, every debug/warning
prints 3 lines, eg

"""
Warning: In /path/to/source/file, line XXX
vtkClassName (0xOBJ_ADDRESS): Actual log message.
<empty line>
"""

I do find the extra information to be extremely valuable, but with the
amount of data logged by debug macros, it becomes a chore to dig through
the output. What if the log messages were compacted to something more
dense, like:

"""
[Warning] Actual log message. (vtkClassName at 0xOBJ_ADDRESS,
/path/to/source/file:XXX)
"""

Is this something that anyone else would find useful?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtk-developers/attachments/20180809/b4fa4592/attachment-0001.html>


More information about the vtk-developers mailing list