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.