| Modifier and Type | Field and Description |
|---|---|
private static Level |
DEBUG |
private static Level |
ERROR |
private static Level |
FATAL |
private static Level |
INFO |
protected Logger |
jdkLogger
The underlying logger from JDK-1.4
|
private static Level |
TRACE |
private static Level |
WARN |
LOGGER_INSTANCE_NAME| Constructor and Description |
|---|
Jdk14Logger(String name)
Creates a new Jdk14Logger object.
|
| Modifier and Type | Method and Description |
|---|---|
private static int |
findCallerStackDepth(StackTraceElement[] stackTrace) |
boolean |
isDebugEnabled()
Is the 'debug' log level enabled?
|
boolean |
isErrorEnabled()
Is the 'error' log level enabled?
|
boolean |
isFatalEnabled()
Is the 'fatal' log level enabled?
|
boolean |
isInfoEnabled()
Is the 'info' log level enabled?
|
boolean |
isTraceEnabled()
Is the 'trace' log level enabled?
|
boolean |
isWarnEnabled()
Is the 'warn' log level enabled?
|
void |
logDebug(Object message)
Logs the given message instance using the 'debug' level
|
void |
logDebug(Object message,
Throwable exception)
Logs the given message and Throwable at the 'debug' level.
|
void |
logError(Object message)
Logs the given message instance using the 'error' level
|
void |
logError(Object message,
Throwable exception)
Logs the given message and Throwable at the 'error' level.
|
void |
logFatal(Object message)
Logs the given message instance using the 'fatal' level
|
void |
logFatal(Object message,
Throwable exception)
Logs the given message and Throwable at the 'fatal' level.
|
void |
logInfo(Object message)
Logs the given message instance using the 'info' level
|
void |
logInfo(Object message,
Throwable exception)
Logs the given message and Throwable at the 'info' level.
|
private void |
logInternal(Level level,
Object msg,
Throwable exception) |
void |
logTrace(Object message)
Logs the given message instance using the 'trace' level
|
void |
logTrace(Object message,
Throwable exception)
Logs the given message and Throwable at the 'trace' level.
|
void |
logWarn(Object message)
Logs the given message instance using the 'warn' level
|
void |
logWarn(Object message,
Throwable exception)
Logs the given message and Throwable at the 'warn' level.
|
private static final Level DEBUG
private static final Level ERROR
private static final Level FATAL
private static final Level INFO
private static final Level TRACE
private static final Level WARN
protected Logger jdkLogger
public Jdk14Logger(String name)
name - logger name as per Logger.getLogger(String)public boolean isDebugEnabled()
LogisDebugEnabled in interface Logpublic boolean isErrorEnabled()
LogisErrorEnabled in interface Logpublic boolean isFatalEnabled()
LogisFatalEnabled in interface Logpublic boolean isInfoEnabled()
LogisInfoEnabled in interface Logpublic boolean isTraceEnabled()
LogisTraceEnabled in interface Logpublic boolean isWarnEnabled()
LogisWarnEnabled in interface Logpublic void logDebug(Object message)
public void logDebug(Object message, Throwable exception)
public void logError(Object message)
public void logError(Object message, Throwable exception)
public void logFatal(Object message)
public void logFatal(Object message, Throwable exception)
public void logInfo(Object message)
public void logInfo(Object message, Throwable exception)
public void logTrace(Object message)
public void logTrace(Object message, Throwable exception)
public void logWarn(Object message)
public void logWarn(Object message, Throwable exception)
private static final int findCallerStackDepth(StackTraceElement[] stackTrace)