> The real problem is that this doesn't remove some messages.
> Those are related to imageio-ext, not jai (seems to me at least).
>  
> Is there any way to get them also to be silent? What is imageio-ext
> using for the logging?
>  
>  


My understanding is that it is a solid error sent to System.err or System.out 
(i.e. no logging system at all).  

To experiment try calling System.setOut and System.setErr before calling the 
code used to test if GDAL is active.

(Yes I know this is an evil hack - but we are faced with an evil problem)  
>  
> Thanks,
> Andrea
>  
>  
> On Thu, Apr 19, 2012 at 1:21 PM, Jody Garnett <[email protected] 
> (mailto:[email protected])> wrote:
> > Hi Andrea - on IRC you were having some trouble with the java logging stuff
> > (used by a couple of the libraries such as GeoTools).
> >  
> > Aside: I note that the trouble with JAI spitting out an error messages does
> > not seem to be related to logging. Basically we can use the pure java JAI
> > jars; or expect them to print a message when they fail to find their library
> > on the library path.
> >  
> > Back to logging - apparently there is a -D command line setting that can be
> > used:
> >  
> > java.util.logging.config.file=/path/to/app.properties
> >  
> > We could that add that to our VM Args for uDig - perhaps asking it to pick
> > up a java logging properties file in the uDig application directory?
> >  
> > Note this is a general solution for configuring java logging; for GeoTools
> > you can actually configure it to use different logging engines (log4j, sl4j
> > etc…) using some method on the GeoTools class.
> >  
> > [1] 
> > http://stackoverflow.com/questions/960099/how-to-set-up-java-logging-using-a-properties-file-java-util-logging
> >  
> > --
> > Jody Garnett
> >  
>  
>  
>  


------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to