Package org.apache.sis.internal.system
Class Loggers
java.lang.Object
org.apache.sis.util.Static
org.apache.sis.internal.system.Loggers
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
FieldsModifier and TypeFieldDescriptionstatic 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 -
Method Summary
Modifier and TypeMethodDescriptionprivate static Level
getEffectiveLevel
(Logger logger) 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
getHandlerLevel
(Logger logger) Returns the finest level of registered handlers for the given logger.
-
Field Details
-
ROOT
The root logger.- See Also:
-
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
The logger for operations related to mathematical operations.- See Also:
-
MEASURE
The logger for operations related to units of measurement.- See Also:
-
SQL
The logger for operations related to JDBC operations.- See Also:
-
XML
The logger for operations related to XML marshalling or unmarshalling.- See Also:
-
WKT
The logger for operations related to WKT parsing or formatting. Note that WKT formatting often occurs in different packages.- See Also:
-
FILTER
The logger for operations related to filters.- See Also:
-
GEOMETRY
The logger for operations related to geometries.- See Also:
-
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
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
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
The logger name for operation related to localization.- See Also:
-
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
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 toLevel.FINE
but no handler have a level finer thanLevel.INFO
, then the effective logging level will beLevel.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
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
Returns the finest level of registered handlers for the given logger. This method verifies also in the parent handlers if the logger use them.
-