Class Loggers

java.lang.Object
org.apache.sis.util.Static
org.apache.sis.internal.system.Loggers

public final class Loggers extends Static
Names of loggers used in SIS other than the "module-wide" loggers. We often use approximately one logger per module, using the appropriate constant of the Modules class as the "module-wide" logger name. However, we also have a few more specialized loggers, which are listed here.
Since:
0.6
Version:
1.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The logger name for operation related to application (console, GUI or web).
    static final String
    The logger name for operation related to coordinate operations, in particular math transforms.
    static final String
    The logger name for operation related to the creating of CRS objects.
    static final String
    The logger for operations related to filters.
    static final String
    The logger for operations related to geometries.
    static final String
    The logger for metadata operation related to the ISO 19115 standard.
    static final String
    The logger name for operation related to localization.
    static final String
    The logger for operations related to mathematical operations.
    static final String
    The logger for operations related to units of measurement.
    static final String
    The root logger.
    static final String
    The logger for operations related to JDBC operations.
    static final String
    The logger for Apache SIS internal operations.
    static final String
    The logger for operations related to WKT parsing or formatting.
    static final String
    The logger for operations related to XML marshalling or unmarshalling.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Do not allow instantiation of this class.
  • Method Summary

    Modifier and Type
    Method
    Description
    private static Level
    Returns the effective level of the given logger, searching in the parent loggers if needed.
    Returns a map of effective logging levels for SIS loggers.
    private static Level
    Returns the finest level of registered handlers for the given logger.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ROOT

      public static final String ROOT
      The root logger.
      See Also:
    • SYSTEM

      public static final String SYSTEM
      The logger for Apache SIS internal operations. The name of this logger does not match the package name of the classes using it, because this logger name does not have the "internal" part in it.
      See Also:
    • MATH

      public static final String MATH
      The logger for operations related to mathematical operations.
      See Also:
    • MEASURE

      public static final String MEASURE
      The logger for operations related to units of measurement.
      See Also:
    • SQL

      public static final String SQL
      The logger for operations related to JDBC operations.
      See Also:
    • XML

      public static final String XML
      The logger for operations related to XML marshalling or unmarshalling.
      See Also:
    • WKT

      public static final String WKT
      The logger for operations related to WKT parsing or formatting. Note that WKT formatting often occurs in different packages.
      See Also:
    • FILTER

      public static final String FILTER
      The logger for operations related to filters.
      See Also:
    • GEOMETRY

      public static final String GEOMETRY
      The logger for operations related to geometries.
      See Also:
    • ISO_19115

      public static final String ISO_19115
      The logger for metadata operation related to the ISO 19115 standard. This is a child of the logger for all metadata operations.
      See Also:
    • CRS_FACTORY

      public static final String CRS_FACTORY
      The logger name for operation related to the creating of CRS objects. This is a child of the logger for all referencing operations.
      See Also:
    • COORDINATE_OPERATION

      public static final String COORDINATE_OPERATION
      The logger name for operation related to coordinate operations, in particular math transforms. This is a child of the logger for all referencing operations.
      See Also:
    • LOCALIZATION

      public static final String LOCALIZATION
      The logger name for operation related to localization.
      See Also:
    • APPLICATION

      public static final String APPLICATION
      The logger name for operation related to application (console, GUI or web).
      See Also:
  • Constructor Details

    • Loggers

      private Loggers()
      Do not allow instantiation of this class.
  • Method Details

    • getEffectiveLevels

      public static SortedMap<String,Level> getEffectiveLevels()
      Returns a map of effective logging levels for SIS loggers. The effective logging level take in account the level of parent loggers and the level of handlers. For example if a logger level is set to Level.FINE but no handler have a level finer than Level.INFO, then the effective logging level will be Level.INFO.

      This method does not report the loggers that have an effective level identical to its parent logger.

      Returns:
      the effective logging levels of SIS loggers.
    • getEffectiveLevel

      private static Level getEffectiveLevel(Logger logger)
      Returns the effective level of the given logger, searching in the parent loggers if needed. This method does not verify if handlers have higher level.
    • getHandlerLevel

      private static Level getHandlerLevel(Logger logger)
      Returns the finest level of registered handlers for the given logger. This method verifies also in the parent handlers if the logger use them.