KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > slf4j > spi > LocationAwareLogger


1 package org.slf4j.spi;
2
3 import org.slf4j.Logger;
4 import org.slf4j.Marker;
5
6 /**
7  * An <b>optional</b> interface helping integration with logging systems capable of
8  * extracting location information. This interface is mainly used by SLF4J bridges
9  * such as jcl104-over-slf4j which need to provide hints so that the underlying logging
10  * system can extract the correct locatin information (method name, line number, etc.).
11  *
12  *
13  * @author Ceki Gulcu
14  * @since 1.3
15  */

16 public interface LocationAwareLogger extends Logger {
17
18   final public int TRACE_INT = 00;
19   final public int DEBUG_INT = 10;
20   final public int INFO_INT = 20;
21   final public int WARN_INT = 30;
22   final public int ERROR_INT = 40;
23   
24   
25   /**
26    * Printing method which support for location information.
27    *
28    * @param marker
29    * @param fqcn The fully qualified class name of the <b>caller</b>
30    * @param level
31    * @param message
32    * @param t
33    */

34   public void log(Marker marker, String JavaDoc fqcn, int level, String JavaDoc message, Throwable JavaDoc t);
35   
36 }
37
Popular Tags