|
MySQL Connector/J size='-1'>5.1.6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mysql.jdbc.log.StandardLogger
public class StandardLogger
Provides logging facilities for those platforms that don't have built-in facilities. Simply logs messages to STDERR.
| Field Summary | |
|---|---|
static java.lang.StringBuffer |
bufferedLog
|
| Constructor Summary | |
|---|---|
StandardLogger(java.lang.String name)
Creates a new StandardLogger object. |
|
StandardLogger(java.lang.String name,
boolean logLocationInfo)
|
|
| Method Summary | |
|---|---|
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(java.lang.Object message)
Logs the given message instance using the 'debug' level |
void |
logDebug(java.lang.Object message,
java.lang.Throwable exception)
Logs the given message and Throwable at the 'debug' level. |
void |
logError(java.lang.Object message)
Logs the given message instance using the 'error' level |
void |
logError(java.lang.Object message,
java.lang.Throwable exception)
Logs the given message and Throwable at the 'error' level. |
void |
logFatal(java.lang.Object message)
Logs the given message instance using the 'fatal' level |
void |
logFatal(java.lang.Object message,
java.lang.Throwable exception)
Logs the given message and Throwable at the 'fatal' level. |
void |
logInfo(java.lang.Object message)
Logs the given message instance using the 'info' level |
void |
logInfo(java.lang.Object message,
java.lang.Throwable exception)
Logs the given message and Throwable at the 'info' level. |
void |
logTrace(java.lang.Object message)
Logs the given message instance using the 'trace' level |
void |
logTrace(java.lang.Object message,
java.lang.Throwable exception)
Logs the given message and Throwable at the 'trace' level. |
void |
logWarn(java.lang.Object message)
Logs the given message instance using the 'warn' level |
void |
logWarn(java.lang.Object message,
java.lang.Throwable exception)
Logs the given message and Throwable at the 'warn' level. |
static void |
saveLogsToBuffer()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.StringBuffer bufferedLog
| Constructor Detail |
|---|
public StandardLogger(java.lang.String name)
name - the name of the configuration to use -- ignored
public StandardLogger(java.lang.String name,
boolean logLocationInfo)
| Method Detail |
|---|
public static void saveLogsToBuffer()
public boolean isDebugEnabled()
Log
isDebugEnabled in interface LogLog.isDebugEnabled()public boolean isErrorEnabled()
Log
isErrorEnabled in interface LogLog.isErrorEnabled()public boolean isFatalEnabled()
Log
isFatalEnabled in interface LogLog.isFatalEnabled()public boolean isInfoEnabled()
Log
isInfoEnabled in interface LogLog.isInfoEnabled()public boolean isTraceEnabled()
Log
isTraceEnabled in interface LogLog.isTraceEnabled()public boolean isWarnEnabled()
Log
isWarnEnabled in interface LogLog.isWarnEnabled()public void logDebug(java.lang.Object message)
logDebug in interface Logmessage - the message to log
public void logDebug(java.lang.Object message,
java.lang.Throwable exception)
logDebug in interface Logmessage - the message to logexception - the throwable to log (may be null)public void logError(java.lang.Object message)
logError in interface Logmessage - the message to log
public void logError(java.lang.Object message,
java.lang.Throwable exception)
logError in interface Logmessage - the message to logexception - the throwable to log (may be null)public void logFatal(java.lang.Object message)
logFatal in interface Logmessage - the message to log
public void logFatal(java.lang.Object message,
java.lang.Throwable exception)
logFatal in interface Logmessage - the message to logexception - the throwable to log (may be null)public void logInfo(java.lang.Object message)
logInfo in interface Logmessage - the message to log
public void logInfo(java.lang.Object message,
java.lang.Throwable exception)
logInfo in interface Logmessage - the message to logexception - the throwable to log (may be null)public void logTrace(java.lang.Object message)
logTrace in interface Logmessage - the message to log
public void logTrace(java.lang.Object message,
java.lang.Throwable exception)
logTrace in interface Logmessage - the message to logexception - the throwable to log (may be null)public void logWarn(java.lang.Object message)
logWarn in interface Logmessage - the message to log
public void logWarn(java.lang.Object message,
java.lang.Throwable exception)
logWarn in interface Logmessage - the message to logexception - the throwable to log (may be null)
|
MySQL Connector/J size='-1'>5.1.6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||