Logo Search packages:      
Sourcecode: mysql-connector-java version File versions  Download package

NullLogger.java

/*
 Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
 

  The MySQL Connector/J is licensed under the terms of the GPLv2
  <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most MySQL Connectors.
  There are special exceptions to the terms and conditions of the GPLv2 as it is applied to
  this software, see the FLOSS License Exception
  <http://www.mysql.com/about/legal/licensing/foss-exception.html>.

  This program is free software; you can redistribute it and/or modify it under the terms
  of the GNU General Public License as published by the Free Software Foundation; version 2
  of the License.

  This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
  without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  See the GNU General Public License for more details.

  You should have received a copy of the GNU General Public License along with this
  program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth
  Floor, Boston, MA 02110-1301  USA



 */
package com.mysql.jdbc.log;

/**
 * A logger that does nothing. Used before the log is configured via the URL or
 * properties.
 * 
 * @author Mark Matthews
 * 
 * @version $Id$
 */
00036 public class NullLogger implements Log {

      /**
       * Creates a new NullLogger with the given name
       * 
       * @param instanceName
       *            (ignored)
       */
00044       public NullLogger(String instanceName) {
      }

      /**
       * @see com.mysql.jdbc.log.Log#isDebugEnabled()
       */
00050       public boolean isDebugEnabled() {
            // XXX Auto-generated method stub
            return false;
      }

      /**
       * @see com.mysql.jdbc.log.Log#isErrorEnabled()
       */
00058       public boolean isErrorEnabled() {
            // XXX Auto-generated method stub
            return false;
      }

      /**
       * @see com.mysql.jdbc.log.Log#isFatalEnabled()
       */
00066       public boolean isFatalEnabled() {
            // XXX Auto-generated method stub
            return false;
      }

      /**
       * @see com.mysql.jdbc.log.Log#isInfoEnabled()
       */
00074       public boolean isInfoEnabled() {
            // XXX Auto-generated method stub
            return false;
      }

      /**
       * @see com.mysql.jdbc.log.Log#isTraceEnabled()
       */
00082       public boolean isTraceEnabled() {
            // XXX Auto-generated method stub
            return false;
      }

      /**
       * @see com.mysql.jdbc.log.Log#isWarnEnabled()
       */
00090       public boolean isWarnEnabled() {
            // XXX Auto-generated method stub
            return false;
      }

      /**
       * @see com.mysql.jdbc.log.Log#logDebug(java.lang.Object)
       */
00098       public void logDebug(Object msg) {
            // XXX Auto-generated method stub

      }

      /**
       * @see com.mysql.jdbc.log.Log#logDebug(java.lang.Object,
       *      java.lang.Throwable)
       */
00107       public void logDebug(Object msg, Throwable thrown) {
            // XXX Auto-generated method stub

      }

      /**
       * @see com.mysql.jdbc.log.Log#logError(java.lang.Object)
       */
00115       public void logError(Object msg) {
            // XXX Auto-generated method stub

      }

      /**
       * @see com.mysql.jdbc.log.Log#logError(java.lang.Object,
       *      java.lang.Throwable)
       */
00124       public void logError(Object msg, Throwable thrown) {
            // XXX Auto-generated method stub

      }

      /**
       * @see com.mysql.jdbc.log.Log#logFatal(java.lang.Object)
       */
00132       public void logFatal(Object msg) {
            // XXX Auto-generated method stub

      }

      /**
       * @see com.mysql.jdbc.log.Log#logFatal(java.lang.Object,
       *      java.lang.Throwable)
       */
00141       public void logFatal(Object msg, Throwable thrown) {
            // XXX Auto-generated method stub

      }

      /**
       * @see com.mysql.jdbc.log.Log#logInfo(java.lang.Object)
       */
00149       public void logInfo(Object msg) {
            // XXX Auto-generated method stub

      }

      /**
       * @see com.mysql.jdbc.log.Log#logInfo(java.lang.Object,
       *      java.lang.Throwable)
       */
00158       public void logInfo(Object msg, Throwable thrown) {
            // XXX Auto-generated method stub

      }

      /**
       * @see com.mysql.jdbc.log.Log#logTrace(java.lang.Object)
       */
00166       public void logTrace(Object msg) {
            // XXX Auto-generated method stub

      }

      /**
       * @see com.mysql.jdbc.log.Log#logTrace(java.lang.Object,
       *      java.lang.Throwable)
       */
00175       public void logTrace(Object msg, Throwable thrown) {
            // XXX Auto-generated method stub

      }

      /**
       * @see com.mysql.jdbc.log.Log#logWarn(java.lang.Object)
       */
00183       public void logWarn(Object msg) {
            // XXX Auto-generated method stub

      }

      /**
       * @see com.mysql.jdbc.log.Log#logWarn(java.lang.Object,
       *      java.lang.Throwable)
       */
00192       public void logWarn(Object msg, Throwable thrown) {
            // XXX Auto-generated method stub

      }

}

Generated by  Doxygen 1.6.0   Back to index