ITK has this group of Logger and LogOutput classes, originally by Hee-Su Kim, and included with ITK in 2005:
Are they still recommended to be used within a new application? Because they look rather old, and there are more modern third party logging libraries around now.
@Niels_Dekker SimpleITK uses them. They were required to redirect messages from ITK to loggers on different platforms and languages. Here is our example usage:
I think a typical usages is some of the itk macros like itkWarningMacro.
I don’t think what SimpleITK using goes through those lines… I recall the extra stuff being added to the message from the macro ( linked above ), that I didn’t think should be in the message.
I think the classes were over engineered (for some old project like IGSTK), and have some dead code and unneeded features.
Thanks @blowekamp but as far as I can see, itkWarningMacro does not use ITK’s Logger classes. (I mean, the classes by Hee-Su Kim). Looking at:
Interestingly, ITK’s Logger classes appear to ignore the GlobalWarningDisplay property! They do have their own macro’s, itkLogMacro and itkLogMacroStatic as I see in itkMacro.h.