Methods Summary |
---|
protected abstract Logger | createLogger(java.lang.String absoluteLoggerName, java.lang.String bundleName, java.lang.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.
|
protected java.lang.String | getAbsoluteLoggerName(java.lang.String relativeLoggerName)
return (relativeLoggerName.startsWith("java") ? //NOI18N
relativeLoggerName : (getDomainRoot() + relativeLoggerName));
|
protected java.lang.String | getDomainRoot() return _domainPrefix;
|
protected static Logger | getErrorLogger()Get the error logger which is used to log things during creation of
loggers. // NOI18N
return LogHelper.getLogger("", _bundleName, // NOI18N
AbstractLoggerFactory.class.getClassLoader());
|
public synchronized Logger | getLogger(java.lang.String relativeLoggerName, java.lang.String bundleName, java.lang.ClassLoader loader)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.
String absoluteLoggerName = getAbsoluteLoggerName(relativeLoggerName);
Logger value = (Logger)_loggerCache.get(absoluteLoggerName);
if (value == null)
{
value = createLogger(absoluteLoggerName, bundleName, loader);
if (value != null)
_loggerCache.put(absoluteLoggerName, value);
}
return value;
|