Package org.apache.commons.logging.impl
Class Jdk14Logger
java.lang.Object
org.apache.commons.logging.impl.Jdk14Logger
- All Implemented Interfaces:
- Serializable,- Log
Implements the 
org.apache.commons.logging.Log
 interface to wrap the standard JDK logging mechanisms that were
 introduced in the Merlin release (JDK 1.4).- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final LevelThis member variable simply ensures that any attempt to initialize this class in a pre-1.4 JVM will result in an ExceptionInInitializerError.protected LoggerThe underlying Logger implementation we are using.protected StringThe name of the logger we are wrapping.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidLogs a message withLevel.FINE.voidLogs a message withLevel.FINE.voidLogs a message withLevel.SEVERE.voidLogs a message withLevel.SEVERE.voidLogs a message withLevel.SEVERE.voidLogs a message withLevel.SEVERE.Gets the native Logger instance we are using.voidLogs a message withLevel.INFO.voidLogs a message withLevel.INFO.booleanIs debug logging currently enabled?booleanIs error logging currently enabled?booleanIs fatal logging currently enabled?booleanIs info logging currently enabled?booleanIs trace logging currently enabled?booleanIs warn logging currently enabled?protected voidLogs a message at the given level.voidLogs a message withLevel.FINEST.voidLogs a message withLevel.FINEST.voidLogs a message withLevel.WARNING.voidLogs a message withLevel.WARNING.
- 
Field Details- 
dummyLevelThis member variable simply ensures that any attempt to initialize this class in a pre-1.4 JVM will result in an ExceptionInInitializerError. It must not be private, as an optimizing compiler could detect that it is not used and optimize it away.
- 
loggerThe underlying Logger implementation we are using.
- 
nameThe name of the logger we are wrapping.
 
- 
- 
Constructor Details- 
Jdk14LoggerConstructs a named instance of this Logger.- Parameters:
- name- Name of the logger to be constructed
 
 
- 
- 
Method Details- 
debugLogs a message withLevel.FINE.
- 
debugLogs a message withLevel.FINE.
- 
errorLogs a message withLevel.SEVERE.
- 
errorLogs a message withLevel.SEVERE.
- 
fatalLogs a message withLevel.SEVERE.
- 
fatalLogs a message withLevel.SEVERE.
- 
getLoggerGets the native Logger instance we are using.- Returns:
- the native Logger instance we are using.
 
- 
infoLogs a message withLevel.INFO.
- 
infoLogs a message withLevel.INFO.
- 
isDebugEnabledIs debug logging currently enabled?- Specified by:
- isDebugEnabledin interface- Log
- Returns:
- true if debug is enabled in the underlying logger.
 
- 
isErrorEnabledIs error logging currently enabled?- Specified by:
- isErrorEnabledin interface- Log
- Returns:
- true if error is enabled in the underlying logger.
 
- 
isFatalEnabledIs fatal logging currently enabled?- Specified by:
- isFatalEnabledin interface- Log
- Returns:
- true if fatal is enabled in the underlying logger.
 
- 
isInfoEnabledIs info logging currently enabled?- Specified by:
- isInfoEnabledin interface- Log
- Returns:
- true if info is enabled in the underlying logger.
 
- 
isTraceEnabledIs trace logging currently enabled?- Specified by:
- isTraceEnabledin interface- Log
- Returns:
- true if trace is enabled in the underlying logger.
 
- 
isWarnEnabledIs warn logging currently enabled?- Specified by:
- isWarnEnabledin interface- Log
- Returns:
- true if warn is enabled in the underlying logger.
 
- 
logLogs a message at the given level.- Parameters:
- level- The level.
- msg- The message.
- ex- The exception.
 
- 
traceLogs a message withLevel.FINEST.
- 
traceLogs a message withLevel.FINEST.
- 
warnLogs a message withLevel.WARNING.
- 
warnLogs a message withLevel.WARNING.
 
-