All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.slf4j.spi.LocationAwareLogger Maven / Gradle / Ivy

There is a newer version: 2.1.0-alpha1
Show newest version
package org.slf4j.spi;

import org.slf4j.Logger;
import org.slf4j.Marker;

/**
 * An optional interface helping integration with logging systems capable of 
 * extracting location information. This interface is mainly used by SLF4J bridges 
 * such as jcl104-over-slf4j which need to provide hints so that the underlying logging
 * system can extract the correct locatin information (method name, line number, etc.).
 * 
 * 
 * @author Ceki Gulcu
 * @since 1.3
 */
public interface LocationAwareLogger extends Logger {

  final public int DEBUG_INT = 0;
  final public int INFO_INT = 1;
  final public int WARN_INT = 2;
  final public int ERROR_INT = 3;
  
  
  /**
   * Printing method which support for location information. 
   * 
   * @param marker
   * @param fqcn The fully qualified class name of the caller
   * @param level
   * @param message
   * @param t
   */  
  public void log(Marker marker, String fqcn, int level, String message, Throwable t);
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy