On 15.02.2017, at 16:33, Marshall Schor <[email protected]> wrote: > >> I think it is reasonable that UIMA includes logging and actually performs >> logging on sensible logging levels including TRACE, DEBUG, INFO, ERROR, >> FATAL, >> etc. If users are not happy with the defaults of the logging framework that >> they >> use, then they need to reconfigure it. I find it hard to imagine that it >> would >> not be possible to change the logging framework settings when running Hadoop >> jobs or when embedding UIMA in an application. I have little experience with >> Hadoop in that respect, but in applications, I usually use log4j and I then >> configure UIMA to also use the log4j backend. Following that I can happily >> control the logging levels of my application and of UIMA (framework as well >> as all components that log through the UIMA logging framework). > > The change to logging request sounds to me similar to other things UIMA does - > in "protecting" an application where reasonable from user (e.g. annotator > writers') mistakes. Here, the mistake is the annotator writer includes too > much > logging at the wrong level in their annotator code. What seems to be wanted > is > a way for UIMA to (in a "production mode"), turn off those logging statements > in > all annotator code. While this could be done by configuring specific loggers > (those named the same as the annotator's class) to "OFF" level, when UIMA is > embedded in other frameworks, this may be hard to do (I'm not sure why, but > that's what I hear is being asserted) > > So, what's being requested is (in production mode) to have logging by > annotator > writers turned off (if they are using the UIMA loggers). Other logging by > UIMA > for errors, debugging, etc., would be left alone (because we assume UIMA > logging > is correctly done with respect to specifying levels, controlling verbosity, > etc.).
I think asking people to set the loggers to "OFF" is pretty reasonable. If people wanted to disable logging entirely, they could install a NOOP logging facility in UIMA. We could provide such a thing. I think we're complaining about logging here on a pretty high niveau. What personally annoys me much more than putting some effort into configuring and redirecting logging are tools/libraries that actually write to System.out or System.err. These are the pest and require really annoying drastic measures :/. Cheers, -- Richard
