Page MenuHomePhabricator

Silent/Enhanced output information mode for IO operations
Closed, WontfixPublic

Description

Maybe we can add a silent-io-mode that can be activated via IOUtil globally?

Some thoughts:

Additional it would be helpfull if some information output levels may be defined.
For example:

  • Standard: Filepath + used reader
  • Enhanced mode: Standard mode + in the reader or writer defined output information about the loaded file. A extension of the AbstractIO classes could be helpfull for this.
  • Silent mode: No output!
  • Debug mode: Enable output information that are necessary for debugging (especially for output information during the read or write process) + Enhanced mode

I think such a feature can be helpful and is optional. It would be helpful, to standarize IO output infromations and makes the consol output more readable.

What do you think about it?

For example, currently a more or less huge amount of output infromation is generated using the mitkITKImageIO:

[2.343] loading /var/folders/_b/q91rdzv91lscys1y0nxyzgpr0000gn/T/SceneIOTempUID_20150828111803509972/oaaaaa_No_Name_.nrrd via itk::ImageIOFactory...
[2.344] ioRegion: ImageIORegion (0x7fff5ed87d90)

Dimension: 3
Index: 0 0 0 
Size: 512 609 15

[2.384] [110, -69.7708, 1031.32]
[2.384] [-110, -344.375, 1065.23]
[2.384] number of image components: 1
[2.385] ...finished!

Event Timeline

kislinsk claimed this task.
kislinsk added a subscriber: kislinsk.
This task was automatically closed because it wasn't updated at least since July 2016 (over 2 years). Please re-open this task if you think that it is still relevant. This most probably means that you will resolve it.