DevNullLogImpl.java
上传用户:qing5858
上传日期:2015-10-27
资源大小:6056k
文件大小:1k
源码类别:

搜索引擎

开发平台:

Java

  1. package net.javacoding.jspider.core.logging.impl;
  2. import net.javacoding.jspider.core.logging.Log;
  3. /**
  4.  * Log implemenation that does no logging at all.  All incoming log
  5.  * messages are simply discarded.
  6.  *
  7.  * $Id: DevNullLogImpl.java,v 1.2 2003/03/27 17:44:05 vanrogu Exp $
  8.  *
  9.  * @author G黱ther Van Roey
  10.  */
  11. public class DevNullLogImpl implements Log {
  12.     public boolean isDebugEnabled() {
  13.         return false;
  14.     }
  15.     public boolean isErrorEnabled() {
  16.         return false;
  17.     }
  18.     public boolean isFatalEnabled() {
  19.         return false;
  20.     }
  21.     public boolean isInfoEnabled() {
  22.         return false;
  23.     }
  24.     public boolean isTraceEnabled() {
  25.         return false;
  26.     }
  27.     public boolean isWarnEnabled() {
  28.         return false;
  29.     }
  30.     public void trace(Object o) {
  31.     }
  32.     public void trace(Object o, Throwable throwable) {
  33.     }
  34.     public void debug(Object o) {
  35.     }
  36.     public void debug(Object o, Throwable throwable) {
  37.     }
  38.     public void info(Object o) {
  39.     }
  40.     public void info(Object o, Throwable throwable) {
  41.     }
  42.     public void warn(Object o) {
  43.     }
  44.     public void warn(Object o, Throwable throwable) {
  45.     }
  46.     public void error(Object o) {
  47.     }
  48.     public void error(Object o, Throwable throwable) {
  49.     }
  50.     public void fatal(Object o) {
  51.     }
  52.     public void fatal(Object o, Throwable throwable) {
  53.     }
  54. }