Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

StaticDisabledLogger.java

00001 /**
00002  * C-JDBC: Clustered JDBC.
00003  * Copyright (C) 2002-2004 French National Institute For Research In Computer
00004  * Science And Control (INRIA).
00005  * Contact: c-jdbc@objectweb.org
00006  * 
00007  * This library is free software; you can redistribute it and/or modify it
00008  * under the terms of the GNU Lesser General Public License as published by the
00009  * Free Software Foundation; either version 2.1 of the License, or any later
00010  * version.
00011  * 
00012  * This library is distributed in the hope that it will be useful, but WITHOUT
00013  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00014  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
00015  * for more details.
00016  * 
00017  * You should have received a copy of the GNU Lesser General Public License
00018  * along with this library; if not, write to the Free Software Foundation,
00019  * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
00020  *
00021  * Initial developer(s): Emmanuel Cecchet.
00022  * Contributor(s): __________________.
00023  */
00024 
00025 package org.objectweb.cjdbc.common.log;
00026 
00027 import org.apache.log4j.Logger;
00028 
00029 /**
00030  * This is a wrapper where logging has been statically disabled. It should
00031  * improve the performance if one wants to completely disable traces.
00032  * 
00033  * @author <a href="mailto:Emmanuel.Cecchet@inria.fr">Emmanuel Cecchet</a>
00034  * @version 1.0
00035  */
00036 public class StaticDisabledLogger extends Trace
00037 {
00038 
00039   /**
00040    * Creates a new <code>StaticDisabledLogger</code> object from a given
00041    * log4j <code>Logger</code>.
00042    * 
00043    * @param log4jLogger the log4j <code>Logger</code>
00044    */
00045   public StaticDisabledLogger(Logger log4jLogger)
00046   {
00047     super(log4jLogger);
00048   }
00049 
00050   /**
00051    * This method is overriden with an empty body.
00052    * 
00053    * @see org.objectweb.cjdbc.common.log.Trace#debug(Object, Throwable)
00054    */
00055   public void debug(Object message, Throwable t)
00056   {
00057   }
00058 
00059   /**
00060    * This method is overriden with an empty body.
00061    * 
00062    * @see org.objectweb.cjdbc.common.log.Trace#debug(Object)
00063    */
00064   public void debug(Object message)
00065   {
00066   }
00067 
00068   /**
00069    * This method is overriden with an empty body.
00070    * 
00071    * @see org.objectweb.cjdbc.common.log.Trace#error(Object, Throwable)
00072    */
00073   public void error(Object message, Throwable t)
00074   {
00075   }
00076 
00077   /**
00078    * This method is overriden with an empty body.
00079    * 
00080    * @see org.objectweb.cjdbc.common.log.Trace#error(Object)
00081    */
00082   public void error(Object message)
00083   {
00084   }
00085 
00086   /**
00087    * This method is overriden with an empty body.
00088    * 
00089    * @see org.objectweb.cjdbc.common.log.Trace#fatal(Object, Throwable)
00090    */
00091   public void fatal(Object message, Throwable t)
00092   {
00093   }
00094 
00095   /**
00096    * This method is overriden with an empty body.
00097    * 
00098    * @see org.objectweb.cjdbc.common.log.Trace#fatal(Object)
00099    */
00100   public void fatal(Object message)
00101   {
00102   }
00103 
00104   /**
00105    * This method is overriden with an empty body.
00106    * 
00107    * @see org.objectweb.cjdbc.common.log.Trace#info(Object, Throwable)
00108    */
00109   public void info(Object message, Throwable t)
00110   {
00111   }
00112 
00113   /**
00114    * This method is overriden with an empty body.
00115    * 
00116    * @see org.objectweb.cjdbc.common.log.Trace#info(Object)
00117    */
00118   public void info(Object message)
00119   {
00120   }
00121 
00122   /**
00123    * This method is overriden with an empty body.
00124    * 
00125    * @see org.objectweb.cjdbc.common.log.Trace#warn(Object, Throwable)
00126    */
00127   public void warn(Object message, Throwable t)
00128   {
00129   }
00130 
00131   /**
00132    * This method is overriden with an empty body.
00133    * 
00134    * @see org.objectweb.cjdbc.common.log.Trace#warn(Object)
00135    */
00136   public void warn(Object message)
00137   {
00138   }
00139 
00140   /**
00141    * @return <code>false</code>
00142    * @see org.objectweb.cjdbc.common.log.Trace#isDebugEnabled()
00143    */
00144   public boolean isDebugEnabled()
00145   {
00146     return false;
00147   }
00148 
00149   /**
00150    * @return <code>false</code>
00151    * @see org.objectweb.cjdbc.common.log.Trace#isErrorEnabled()
00152    */
00153   public boolean isErrorEnabled()
00154   {
00155     return false;
00156   }
00157 
00158   /**
00159    * @return <code>false</code>
00160    * @see org.objectweb.cjdbc.common.log.Trace#isFatalEnabled()
00161    */
00162   public boolean isFatalEnabled()
00163   {
00164     return false;
00165   }
00166 
00167   /**
00168    * @return <code>false</code>
00169    * @see org.objectweb.cjdbc.common.log.Trace#isInfoEnabled()
00170    */
00171   public boolean isInfoEnabled()
00172   {
00173     return false;
00174   }
00175 
00176   /**
00177    * @return <code>false</code>
00178    * @see org.objectweb.cjdbc.common.log.Trace#isWarnEnabled()
00179    */
00180   public boolean isWarnEnabled()
00181   {
00182     return false;
00183   }
00184 }

Generated on Mon Apr 11 22:01:35 2005 for C-JDBC by  doxygen 1.3.9.1