Several imagemosaic classes create their logger by calling toString() on the
class instead of passing the class object directly to getLogger().  

For example,
org.geotools.util.logging.Logging.getLogger(ImageMosaicFormat.class.toString());
instead of
org.geotools.util.logging.Logging.getLogger(ImageMosaicFormat.class);

This will cause the logger name to be something like "class
org.geotools.gce.imagemosaic.ImageMosaicFormat" instead of
"org.geotools.gce.imagemosaic" so configuring the logging for the package
name will not affect these classes.  This makes it difficult to properly
configure the logging for these classes without looking at the source code.

The three imagemosaic classes that do this are:
org.geotools.gce.imagemosaic.ImageMosaicFormat
org.geotools.gce.imagemosaic.Utils
org.geotools.gce.imagemosaic.catalog.index.IndexerUtils

Also, org.geotools.gce.imagemosaic.catalog.GranuleCatalogFactory creates its
logger by calling getLogger("GranuleCatalogFactory").

org.geotools.gce.geotiff.GeoTiffReader is another class that does this.

Would it be possible to change the loggers for all of these classes?



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/ImageMosaic-Logging-tp5239667.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to