MySQL Connector/J size='-1'>5.0.8

com.mysql.jdbc.log
Interface Log

All Known Implementing Classes:
CommonsLogger, Jdk14Logger, Log4JLogger, NullLogger, StandardLogger

public interface Log

Unified interface to logging facilities on different platforms

Version:
$Id: Log.java 3726 2005-05-19 15:52:24Z mmatthews $
Author:
Mark Matthews

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 msg)
          Logs the given message instance using the 'debug' level
 void logDebug(java.lang.Object msg, java.lang.Throwable thrown)
          Logs the given message and Throwable at the 'debug' level.
 void logError(java.lang.Object msg)
          Logs the given message instance using the 'error' level
 void logError(java.lang.Object msg, java.lang.Throwable thrown)
          Logs the given message and Throwable at the 'error' level.
 void logFatal(java.lang.Object msg)
          Logs the given message instance using the 'fatal' level
 void logFatal(java.lang.Object msg, java.lang.Throwable thrown)
          Logs the given message and Throwable at the 'fatal' level.
 void logInfo(java.lang.Object msg)
          Logs the given message instance using the 'info' level
 void logInfo(java.lang.Object msg, java.lang.Throwable thrown)
          Logs the given message and Throwable at the 'info' level.
 void logTrace(java.lang.Object msg)
          Logs the given message instance using the 'trace' level
 void logTrace(java.lang.Object msg, java.lang.Throwable thrown)
          Logs the given message and Throwable at the 'trace' level.
 void logWarn(java.lang.Object msg)
          Logs the given message instance using the 'warn' level
 void logWarn(java.lang.Object msg, java.lang.Throwable thrown)
          Logs the given message and Throwable at the 'warn' level.
 

Method Detail

isDebugEnabled

public boolean isDebugEnabled()
Is the 'debug' log level enabled?

Returns:
true if so.

isErrorEnabled

public boolean isErrorEnabled()
Is the 'error' log level enabled?

Returns:
true if so.

isFatalEnabled

public boolean isFatalEnabled()
Is the 'fatal' log level enabled?

Returns:
true if so.

isInfoEnabled

public boolean isInfoEnabled()
Is the 'info' log level enabled?

Returns:
true if so.

isTraceEnabled

public boolean isTraceEnabled()
Is the 'trace' log level enabled?

Returns:
true if so.

isWarnEnabled

public boolean isWarnEnabled()
Is the 'warn' log level enabled?

Returns:
true if so.

logDebug

public void logDebug(java.lang.Object msg)
Logs the given message instance using the 'debug' level

Parameters:
msg - the message to log

logDebug

public void logDebug(java.lang.Object msg,
                     java.lang.Throwable thrown)
Logs the given message and Throwable at the 'debug' level.

Parameters:
msg - the message to log
thrown - the throwable to log (may be null)

logError

public void logError(java.lang.Object msg)
Logs the given message instance using the 'error' level

Parameters:
msg - the message to log

logError

public void logError(java.lang.Object msg,
                     java.lang.Throwable thrown)
Logs the given message and Throwable at the 'error' level.

Parameters:
msg - the message to log
thrown - the throwable to log (may be null)

logFatal

public void logFatal(java.lang.Object msg)
Logs the given message instance using the 'fatal' level

Parameters:
msg - the message to log

logFatal

public void logFatal(java.lang.Object msg,
                     java.lang.Throwable thrown)
Logs the given message and Throwable at the 'fatal' level.

Parameters:
msg - the message to log
thrown - the throwable to log (may be null)

logInfo

public void logInfo(java.lang.Object msg)
Logs the given message instance using the 'info' level

Parameters:
msg - the message to log

logInfo

public void logInfo(java.lang.Object msg,
                    java.lang.Throwable thrown)
Logs the given message and Throwable at the 'info' level.

Parameters:
msg - the message to log
thrown - the throwable to log (may be null)

logTrace

public void logTrace(java.lang.Object msg)
Logs the given message instance using the 'trace' level

Parameters:
msg - the message to log

logTrace

public void logTrace(java.lang.Object msg,
                     java.lang.Throwable thrown)
Logs the given message and Throwable at the 'trace' level.

Parameters:
msg - the message to log
thrown - the throwable to log (may be null)

logWarn

public void logWarn(java.lang.Object msg)
Logs the given message instance using the 'warn' level

Parameters:
msg - the message to log

logWarn

public void logWarn(java.lang.Object msg,
                    java.lang.Throwable thrown)
Logs the given message and Throwable at the 'warn' level.

Parameters:
msg - the message to log
thrown - the throwable to log (may be null)

MySQL Connector/J size='-1'>5.0.8