| Modifier and Type | Field and Description |
|---|---|
private static int |
DEBUG |
private static int |
ERROR |
private static int |
FATAL |
private static int |
INFO |
private boolean |
logLocationInfo |
private static int |
TRACE |
private static int |
WARN |
LOGGER_INSTANCE_NAME| Constructor and Description |
|---|
StandardLogger(String name)
Creates a new StandardLogger object.
|
StandardLogger(String name,
boolean logLocationInfo) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected String |
logInternal(int 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 int FATAL
private static final int ERROR
private static final int WARN
private static final int INFO
private static final int DEBUG
private static final int TRACE
private boolean logLocationInfo
public StandardLogger(String name)
name - the name of the configuration to use -- ignoredpublic StandardLogger(String name, boolean logLocationInfo)
name - the name of the configuration to use -- ignoredlogLocationInfo - logLocationInfopublic 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)