|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jdo.spi.persistence.utility.logging.LogHelper
public class LogHelper
This class manages the logging facility for JDO components. It is the class that keeps track of the log factory in use for getting loggers for use in JDO components.
This class has no JDK 1.4 dependencies.
The log factory is responsible for constructing the loggers and for ensuring that there is only one logger per component.
| Field Summary | |
|---|---|
protected static boolean |
jdk14
Flag to tell we are running in JDK 1.4 and can use java.util.logging.Logger implementation. |
protected static LoggerFactory |
loggerFactory
LoggerFactory registered for creating new loggers. |
| Constructor Summary | |
|---|---|
LogHelper()
|
|
| Method Summary | |
|---|---|
static Logger |
getLogger(java.lang.String loggerName,
java.lang.String bundleName,
java.lang.ClassLoader loader)
Get a Logger. |
static boolean |
isJDK14()
Check to see if the JDK 1.4 logging environment is available. |
static void |
registerLoggerFactory(LoggerFactory factory)
Register a LoggerFactory for use in managed environments or for special situations. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static boolean jdk14
protected static LoggerFactory loggerFactory
| Constructor Detail |
|---|
public LogHelper()
| Method Detail |
|---|
public static Logger getLogger(java.lang.String loggerName,
java.lang.String bundleName,
java.lang.ClassLoader loader)
loggerName - 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
public static void registerLoggerFactory(LoggerFactory factory)
factory - the LoggerFactory to use for all getLogger requestspublic static boolean isJDK14()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||