Class AbstractLoggerFactory
java.lang.Object
com.sun.jdo.spi.persistence.utility.logging.AbstractLoggerFactory
- All Implemented Interfaces:
LoggerFactory
- Direct Known Subclasses:
LoggerFactoryJDK13,LoggerFactoryJDK14
- Version:
- %I%
- Author:
- Rochelle Raccah
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract LoggercreateLogger(String absoluteLoggerName, String bundleName, ClassLoader loader) Create a new Logger.protected StringgetAbsoluteLoggerName(String relativeLoggerName) protected Stringprotected static LoggerGet the error logger which is used to log things during creation of loggers.getLogger(String relativeLoggerName, String bundleName, ClassLoader loader) Get a Logger.
-
Constructor Details
-
AbstractLoggerFactory
public AbstractLoggerFactory()
-
-
Method Details
-
getErrorLogger
Get the error logger which is used to log things during creation of loggers. -
getLogger
Get a Logger. The class that implements this interface is responsible for creating a logger for the named component. The bundle name and class loader are passed to allow the implementation to properly find and construct the internationalization bundle.- Specified by:
getLoggerin interfaceLoggerFactory- Parameters:
relativeLoggerName- the relative name of this loggerbundleName- the fully qualified name of the resource bundleloader- the class loader used to load the resource bundle, or null- Returns:
- the logger
-
createLogger
protected abstract Logger createLogger(String absoluteLoggerName, String bundleName, ClassLoader loader) Create a new Logger. Subclasses are responsible for creating a logger for the named component. The bundle name and class loader are passed to allow the implementation to properly find and construct the internationalization bundle.- Parameters:
absoluteLoggerName- the absolute name of this loggerbundleName- the fully qualified name of the resource bundleloader- the class loader used to load the resource bundle, or null- Returns:
- the logger
-
getDomainRoot
-
getAbsoluteLoggerName
-