public static synchronized Logger | getLogger(java.lang.String loggerName, java.lang.String bundleName, java.lang.ClassLoader loader)Get a Logger. This call is delegated to the registered LoggerFactory.
If there is no registered LoggerFactory, then initialize one based on
whether we are running in JDK 1.4 (or higher).
The bundle name and class loader are passed to allow the implementation
to properly find and construct the internationalization bundle.
This method is synchronized to avoid race conditions where two threads
access a component using the same Logger at the same time.
// if an implementation has not registered a LoggerFactory, use a standard one.
if (loggerFactory == null) {
if (jdk14) {
loggerFactory = new LoggerFactoryJDK14();
} else {
loggerFactory = new LoggerFactoryJDK13();
}
}
return loggerFactory.getLogger(loggerName, bundleName, loader);
|