Java tutorial
/* * "Pencil - Log message compiler" is (c) 2004 Andreas Siebert (j2biz community) * * Author: Andreas Siebert. * * This file is part of "Pencil - Log message compiler". * * "Pencil - Log message compiler" 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; * either version 2 of the License, or (at your option) any later version. * * "Pencil - Log message compiler" 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 "Pencil - Logger message compiler"; if not, * write to the Free Software Foundation, Inc., 59 Temple Place, * Suite 330, Boston, MA 02111-1307 USA * */ package com.j2biz.pencil; import org.apache.commons.logging.Log; /** * @author andrej * * To change the template for this generated type comment go to * Window - Preferences - Java - Code Generation - Code and Comments */ public class SpecialLogger implements Log { // final PrintWriter out; /** * */ public SpecialLogger(String name) { ; } /* (non-Javadoc) * @see org.apache.commons.logging.Log#isDebugEnabled() */ public boolean isDebugEnabled() { return true; } /* (non-Javadoc) * @see org.apache.commons.logging.Log#isErrorEnabled() */ public boolean isErrorEnabled() { return true; } /* (non-Javadoc) * @see org.apache.commons.logging.Log#isFatalEnabled() */ public boolean isFatalEnabled() { return true; } /* (non-Javadoc) * @see org.apache.commons.logging.Log#isInfoEnabled() */ public boolean isInfoEnabled() { return true; } /* (non-Javadoc) * @see org.apache.commons.logging.Log#isTraceEnabled() */ public boolean isTraceEnabled() { return true; } /* (non-Javadoc) * @see org.apache.commons.logging.Log#isWarnEnabled() */ public boolean isWarnEnabled() { return true; } /* (non-Javadoc) * @see org.apache.commons.logging.Log#trace(java.lang.Object) */ public void trace(Object message) { System.err.println(message); } /* (non-Javadoc) * @see org.apache.commons.logging.Log#trace(java.lang.Object, java.lang.Throwable) */ public void trace(Object message, Throwable t) { System.err.println(message); } /* (non-Javadoc) * @see org.apache.commons.logging.Log#debug(java.lang.Object) */ public void debug(Object message) { System.err.println(message); } /* (non-Javadoc) * @see org.apache.commons.logging.Log#debug(java.lang.Object, java.lang.Throwable) */ public void debug(Object message, Throwable t) { System.err.println(message); } /* (non-Javadoc) * @see org.apache.commons.logging.Log#info(java.lang.Object) */ public void info(Object message) { System.err.println(message); } /* (non-Javadoc) * @see org.apache.commons.logging.Log#info(java.lang.Object, java.lang.Throwable) */ public void info(Object message, Throwable t) { System.err.println(message); } /* (non-Javadoc) * @see org.apache.commons.logging.Log#warn(java.lang.Object) */ public void warn(Object message) { System.err.println(message); } /* (non-Javadoc) * @see org.apache.commons.logging.Log#warn(java.lang.Object, java.lang.Throwable) */ public void warn(Object message, Throwable t) { System.err.println(message); } /* (non-Javadoc) * @see org.apache.commons.logging.Log#error(java.lang.Object) */ public void error(Object message) { System.err.println(message); } /* (non-Javadoc) * @see org.apache.commons.logging.Log#error(java.lang.Object, java.lang.Throwable) */ public void error(Object message, Throwable t) { System.err.println(message); } /* (non-Javadoc) * @see org.apache.commons.logging.Log#fatal(java.lang.Object) */ public void fatal(Object message) { System.err.println(message); } /* (non-Javadoc) * @see org.apache.commons.logging.Log#fatal(java.lang.Object, java.lang.Throwable) */ public void fatal(Object message, Throwable t) { System.err.println(message); } }