Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2004-2011 QOS.ch All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 package org.slf4j.helpers;
 
This class serves as base for adapters or native implementations of logging systems lacking Marker support. In this implementation, methods taking marker data simply invoke the corresponding method without the Marker argument, discarding any marker data passed as argument.

Author(s):
Ceki Gulcu
 
 public abstract class MarkerIgnoringBase extends NamedLoggerBase implements Logger {
 
   private static final long serialVersionUID = 9044267456635152283L;
 
   public boolean isTraceEnabled(Marker marker) {
     return isTraceEnabled();
   }
   
   public void trace(Marker markerString msg) {
     trace(msg);
   }
 
   public void trace(Marker markerString formatObject arg) {
     trace(formatarg);
   }
 
   public void trace(Marker markerString formatObject arg1Object arg2) {
     trace(formatarg1arg2);
   }
 
   public void trace(Marker markerString formatObject... arguments) {
     trace(formatarguments);
   }
 
   public void trace(Marker markerString msgThrowable t) {
     trace(msgt);
   }
   
   public boolean isDebugEnabled(Marker marker) {
     return isDebugEnabled();
   }
 
   public void debug(Marker markerString msg) {
     debug(msg);
   }
 
   public void debug(Marker markerString formatObject arg) {
     debug(formatarg);
   }
 
   public void debug(Marker markerString formatObject arg1Object arg2) {
     debug(formatarg1arg2);
   }
 
   public void debug(Marker markerString formatObject... arguments) {
     debug(formatarguments);
   }
 
   public void debug(Marker markerString msgThrowable t) {
     debug(msgt);
   }
 
   public boolean isInfoEnabled(Marker marker) {
     return isInfoEnabled();
   }
 
   public void info(Marker markerString msg) {
     info(msg);
   }
 
   public void info(Marker markerString formatObject arg) {
    info(formatarg);
  }
  public void info(Marker markerString formatObject arg1Object arg2) {
    info(formatarg1arg2);
  }
  public void info(Marker markerString formatObject... arguments) {
    info(formatarguments);
  }
  public void info(Marker markerString msgThrowable t) {
    info(msgt);
  }
  public boolean isWarnEnabled(Marker marker) {
    return isWarnEnabled();
  }
  public void warn(Marker markerString msg) {
    warn(msg);
  }
  public void warn(Marker markerString formatObject arg) {
    warn(formatarg);
  }
  public void warn(Marker markerString formatObject arg1Object arg2) {
    warn(formatarg1arg2);
  }
  public void warn(Marker markerString formatObject... arguments) {
    warn(formatarguments);
  }
  public void warn(Marker markerString msgThrowable t) {
    warn(msgt);
  }
 
  public boolean isErrorEnabled(Marker marker) {
    return isErrorEnabled();
  }
  public void error(Marker markerString msg) {
    error(msg);
  }
  public void error(Marker markerString formatObject arg) {
    error(formatarg);
  }
  public void error(Marker markerString formatObject arg1Object arg2) {
    error(formatarg1arg2);
  }
  public void error(Marker markerString formatObject... arguments) {
    error(formatarguments);
  }
  public void error(Marker markerString msgThrowable t) {
    error(msgt);
  }
  public String toString() {
	  return this.getClass().getName()+"("+getName()+")";
  }
  
New to GrepCode? Check out our FAQ X