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

com.mysql.jdbc.log
Class NullLogger

java.lang.Object
  extended by com.mysql.jdbc.log.NullLogger
All Implemented Interfaces:
Log

public class NullLogger
extends java.lang.Object
implements Log

A logger that does nothing. Used before the log is configured via the URL or properties.

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

Constructor Summary
NullLogger(java.lang.String instanceName)
          Creates a new NullLogger with the given name
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullLogger

public NullLogger(java.lang.String instanceName)
Creates a new NullLogger with the given name

Parameters:
instanceName - (ignored)
Method Detail

isDebugEnabled

public boolean isDebugEnabled()
Description copied from interface: Log
Is the 'debug' log level enabled?

Specified by:
isDebugEnabled in interface Log
Returns:
true if so.
See Also:
Log.isDebugEnabled()

isErrorEnabled

public boolean isErrorEnabled()
Description copied from interface: Log
Is the 'error' log level enabled?

Specified by:
isErrorEnabled in interface Log
Returns:
true if so.
See Also:
Log.isErrorEnabled()

isFatalEnabled

public boolean isFatalEnabled()
Description copied from interface: Log
Is the 'fatal' log level enabled?

Specified by:
isFatalEnabled in interface Log
Returns:
true if so.
See Also:
Log.isFatalEnabled()

isInfoEnabled

public boolean isInfoEnabled()
Description copied from interface: Log
Is the 'info' log level enabled?

Specified by:
isInfoEnabled in interface Log
Returns:
true if so.
See Also:
Log.isInfoEnabled()

isTraceEnabled

public boolean isTraceEnabled()
Description copied from interface: Log
Is the 'trace' log level enabled?

Specified by:
isTraceEnabled in interface Log
Returns:
true if so.
See Also:
Log.isTraceEnabled()

isWarnEnabled

public boolean isWarnEnabled()
Description copied from interface: Log
Is the 'warn' log level enabled?

Specified by:
isWarnEnabled in interface Log
Returns:
true if so.
See Also:
Log.isWarnEnabled()

logDebug

public void logDebug(java.lang.Object msg)
Description copied from interface: Log
Logs the given message instance using the 'debug' level

Specified by:
logDebug in interface Log
Parameters:
msg - the message to log
See Also:
Log.logDebug(java.lang.Object)

logDebug

public void logDebug(java.lang.Object msg,
                     java.lang.Throwable thrown)
Description copied from interface: Log
Logs the given message and Throwable at the 'debug' level.

Specified by:
logDebug in interface Log
Parameters:
msg - the message to log
thrown - the throwable to log (may be null)
See Also:
Log.logDebug(java.lang.Object, java.lang.Throwable)

logError

public void logError(java.lang.Object msg)
Description copied from interface: Log
Logs the given message instance using the 'error' level

Specified by:
logError in interface Log
Parameters:
msg - the message to log
See Also:
Log.logError(java.lang.Object)

logError

public void logError(java.lang.Object msg,
                     java.lang.Throwable thrown)
Description copied from interface: Log
Logs the given message and Throwable at the 'error' level.

Specified by:
logError in interface Log
Parameters:
msg - the message to log
thrown - the throwable to log (may be null)
See Also:
Log.logError(java.lang.Object, java.lang.Throwable)

logFatal

public void logFatal(java.lang.Object msg)
Description copied from interface: Log
Logs the given message instance using the 'fatal' level

Specified by:
logFatal in interface Log
Parameters:
msg - the message to log
See Also:
Log.logFatal(java.lang.Object)

logFatal

public void logFatal(java.lang.Object msg,
                     java.lang.Throwable thrown)
Description copied from interface: Log
Logs the given message and Throwable at the 'fatal' level.

Specified by:
logFatal in interface Log
Parameters:
msg - the message to log
thrown - the throwable to log (may be null)
See Also:
Log.logFatal(java.lang.Object, java.lang.Throwable)

logInfo

public void logInfo(java.lang.Object msg)
Description copied from interface: Log
Logs the given message instance using the 'info' level

Specified by:
logInfo in interface Log
Parameters:
msg - the message to log
See Also:
Log.logInfo(java.lang.Object)

logInfo

public void logInfo(java.lang.Object msg,
                    java.lang.Throwable thrown)
Description copied from interface: Log
Logs the given message and Throwable at the 'info' level.

Specified by:
logInfo in interface Log
Parameters:
msg - the message to log
thrown - the throwable to log (may be null)
See Also:
Log.logInfo(java.lang.Object, java.lang.Throwable)

logTrace

public void logTrace(java.lang.Object msg)
Description copied from interface: Log
Logs the given message instance using the 'trace' level

Specified by:
logTrace in interface Log
Parameters:
msg - the message to log
See Also:
Log.logTrace(java.lang.Object)

logTrace

public void logTrace(java.lang.Object msg,
                     java.lang.Throwable thrown)
Description copied from interface: Log
Logs the given message and Throwable at the 'trace' level.

Specified by:
logTrace in interface Log
Parameters:
msg - the message to log
thrown - the throwable to log (may be null)
See Also:
Log.logTrace(java.lang.Object, java.lang.Throwable)

logWarn

public void logWarn(java.lang.Object msg)
Description copied from interface: Log
Logs the given message instance using the 'warn' level

Specified by:
logWarn in interface Log
Parameters:
msg - the message to log
See Also:
Log.logWarn(java.lang.Object)

logWarn

public void logWarn(java.lang.Object msg,
                    java.lang.Throwable thrown)
Description copied from interface: Log
Logs the given message and Throwable at the 'warn' level.

Specified by:
logWarn in interface Log
Parameters:
msg - the message to log
thrown - the throwable to log (may be null)
See Also:
Log.logWarn(java.lang.Object, java.lang.Throwable)

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