Package com.sun.logging
Class LogDomains
java.lang.Object
com.sun.logging.LogDomains
Class LogDomains
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringAdmin Loggerstatic final Stringstatic final StringConfig Loggerstatic final Stringstatic final Stringcore Loggerstatic final StringDOMAIN_ROOT the prefix for the logger name.static final StringDeployment Loggerstatic final Stringstatic final StringJavaMail Loggerstatic final StringJAXR Loggerstatic final StringJAXRPC Loggerstatic final Stringstatic final StringJMS Loggerstatic final Stringstatic final Stringstatic final Stringclassloader Loggerstatic final Stringstatic final StringPACKAGE_ROOT the prefix for the packages where logger resource bundles reside.static final Stringpersistence loggerstatic final StringRESOURCE_BUNDLE the name of the logging resource bundles.static final StringResource Loggerstatic final StringSAAJ Loggerstatic final Stringstatic final StringSelf Management Loggerstatic final StringServer Loggerstatic final StringSQL Tracing Loggerstatic final Stringstatic final StringUpgrade logger name.static final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DOMAIN_ROOT
DOMAIN_ROOT the prefix for the logger name. This is public only so it can be accessed w/in the ias package space.- See Also:
-
UPGRADE_LOGGER
Upgrade logger name.- See Also:
-
PACKAGE_ROOT
PACKAGE_ROOT the prefix for the packages where logger resource bundles reside. This is public only so it can be accessed w/in the ias package space.- See Also:
-
RESOURCE_BUNDLE
RESOURCE_BUNDLE the name of the logging resource bundles.- See Also:
-
EJB_LOGGER
- See Also:
-
JAVAMAIL_LOGGER
JavaMail Logger- See Also:
-
JMS_LOGGER
JMS Logger- See Also:
-
WEB_LOGGER
- See Also:
-
CMP_LOGGER
- See Also:
-
JDO_LOGGER
- See Also:
-
ACC_LOGGER
- See Also:
-
MDB_LOGGER
- See Also:
-
SECURITY_LOGGER
- See Also:
-
TRANSACTION_LOGGER
- See Also:
-
CORBA_LOGGER
- See Also:
-
UTIL_LOGGER
- See Also:
-
JNDI_LOGGER
- See Also:
-
JTA_LOGGER
- See Also:
-
RSR_LOGGER
Resource Logger- See Also:
-
DPL_LOGGER
Deployment Logger- See Also:
-
JAXRPC_LOGGER
JAXRPC Logger- See Also:
-
JAXR_LOGGER
JAXR Logger- See Also:
-
SAAJ_LOGGER
SAAJ Logger- See Also:
-
SELF_MANAGEMENT_LOGGER
Self Management Logger- See Also:
-
SQL_TRACE_LOGGER
SQL Tracing Logger- See Also:
-
ADMIN_LOGGER
Admin Logger- See Also:
-
SERVER_LOGGER
Server Logger- See Also:
-
CORE_LOGGER
core Logger- See Also:
-
LOADER_LOGGER
classloader Logger- See Also:
-
CONFIG_LOGGER
Config Logger- See Also:
-
PERSISTENCE_LOGGER
persistence logger- See Also:
-
-
Constructor Details
-
LogDomains
public LogDomains()
-
-
Method Details
-
getLogger
Returns initialized logger using resource bundle found by the class's classloader.Logger name will be constructed as
${loggerNamePrefix}.$(clazz.getPackageName())Locating the resource bundle:
- If the loggerNamePrefix starts with
jakarta., this prefix is replaced bycom.sun.logging. - If the resource bundle is not found, method tries to go through class's package hierarchy to find the closest LogStrings.properties file.
- Parameters:
clazz- - owner of the logger instance.loggerNamePrefix-- Returns:
Logger, never null
- If the loggerNamePrefix starts with
-
getLogger
Returns initialized logger.If the resourceBundleLookup is true, uses the clazz's classloader to find and load the
LogStrings.propertiesfile.Logger name will be constructed as
${loggerNamePrefix}.$(clazz.getPackageName())Locating the resource bundle (if requested):
- If the loggerNamePrefix starts with
jakarta., this prefix is replaced bycom.sun.logging. - If the resource bundle is not found, method tries to go through class's package hierarchy to find the closest LogStrings.properties file.
- Parameters:
clazz- - owner of the logger instance.loggerNamePrefix-findResourceBundle- - try to find the resource bundle for the logger now.- Returns:
Logger, never null
- If the loggerNamePrefix starts with
-
getLogger
Returns initialized logger.Locating the resource bundle:
- Uses provided classloader, which allows to use resource bundle from another jar file
- If the loggerNamePrefix starts with
jakarta., this prefix is replaced bycom.sun.logging. - If the resource bundle is not found, method tries to go through class's package hierarchy to find the closest LogStrings.properties file.
- Parameters:
clazz- - owner of the logger instance.loggerNamePrefix-rbLoader- - try to find the resource bundle for the logger now.- Returns:
Logger, never null
-