[slf4j-dev] svn commit: r1315 - slf4j/trunk/log4j-over-slf4j/src/main/java/org/apache/log4j
ceki at slf4j.org
ceki at slf4j.org
Fri Apr 17 18:49:36 CEST 2009
Author: ceki
Date: Fri Apr 17 18:49:35 2009
New Revision: 1315
Modified:
slf4j/trunk/log4j-over-slf4j/src/main/java/org/apache/log4j/Category.java
slf4j/trunk/log4j-over-slf4j/src/main/java/org/apache/log4j/Logger.java
Log:
better method name
Modified: slf4j/trunk/log4j-over-slf4j/src/main/java/org/apache/log4j/Category.java
==============================================================================
--- slf4j/trunk/log4j-over-slf4j/src/main/java/org/apache/log4j/Category.java (original)
+++ slf4j/trunk/log4j-over-slf4j/src/main/java/org/apache/log4j/Category.java Fri Apr 17 18:49:35 2009
@@ -169,7 +169,7 @@
return false;
}
- void innerLog(Marker marker, String fqcn, int level, Object message,
+ void differentiatedLog(Marker marker, String fqcn, int level, Object message,
Throwable t) {
String m = convertToString(message);
if (locationAwareLogger != null) {
@@ -199,7 +199,7 @@
* Delegates to {@link org.slf4j.Logger#debug(String)} method of SLF4J.
*/
public void debug(Object message) {
- innerLog(null, CATEGORY_FQCN, LocationAwareLogger.DEBUG_INT, message, null);
+ differentiatedLog(null, CATEGORY_FQCN, LocationAwareLogger.DEBUG_INT, message, null);
}
/**
@@ -207,14 +207,14 @@
* SLF4J.
*/
public void debug(Object message, Throwable t) {
- innerLog(null, CATEGORY_FQCN, LocationAwareLogger.DEBUG_INT, message, t);
+ differentiatedLog(null, CATEGORY_FQCN, LocationAwareLogger.DEBUG_INT, message, t);
}
/**
* Delegates to {@link org.slf4j.Logger#info(String)} method in SLF4J.
*/
public void info(Object message) {
- innerLog(null, CATEGORY_FQCN, LocationAwareLogger.INFO_INT, message, null);
+ differentiatedLog(null, CATEGORY_FQCN, LocationAwareLogger.INFO_INT, message, null);
}
/**
@@ -222,14 +222,14 @@
* SLF4J.
*/
public void info(Object message, Throwable t) {
- innerLog(null, CATEGORY_FQCN, LocationAwareLogger.INFO_INT, message, t);
+ differentiatedLog(null, CATEGORY_FQCN, LocationAwareLogger.INFO_INT, message, t);
}
/**
* Delegates to {@link org.slf4j.Logger#warn(String)} method in SLF4J.
*/
public void warn(Object message) {
- innerLog(null, CATEGORY_FQCN, LocationAwareLogger.WARN_INT, message, null);
+ differentiatedLog(null, CATEGORY_FQCN, LocationAwareLogger.WARN_INT, message, null);
}
/**
@@ -237,14 +237,14 @@
* SLF4J.
*/
public void warn(Object message, Throwable t) {
- innerLog(null, CATEGORY_FQCN, LocationAwareLogger.WARN_INT, message, t);
+ differentiatedLog(null, CATEGORY_FQCN, LocationAwareLogger.WARN_INT, message, t);
}
/**
* Delegates to {@link org.slf4j.Logger#error(String)} method in SLF4J.
*/
public void error(Object message) {
- innerLog(null, CATEGORY_FQCN, LocationAwareLogger.ERROR_INT, message, null);
+ differentiatedLog(null, CATEGORY_FQCN, LocationAwareLogger.ERROR_INT, message, null);
}
/**
@@ -252,14 +252,14 @@
* SLF4J.
*/
public void error(Object message, Throwable t) {
- innerLog(null, CATEGORY_FQCN, LocationAwareLogger.ERROR_INT, message, t);
+ differentiatedLog(null, CATEGORY_FQCN, LocationAwareLogger.ERROR_INT, message, t);
}
/**
* Delegates to {@link org.slf4j.Logger#error(String)} method in SLF4J.
*/
public void fatal(Object message) {
- innerLog(FATAL_MARKER, CATEGORY_FQCN, LocationAwareLogger.ERROR_INT, message, null);
+ differentiatedLog(FATAL_MARKER, CATEGORY_FQCN, LocationAwareLogger.ERROR_INT, message, null);
}
/**
@@ -267,7 +267,7 @@
* SLF4J. In addition, the call is marked with a marker named "FATAL".
*/
public void fatal(Object message, Throwable t) {
- innerLog(FATAL_MARKER, CATEGORY_FQCN, LocationAwareLogger.ERROR_INT, message, t);
+ differentiatedLog(FATAL_MARKER, CATEGORY_FQCN, LocationAwareLogger.ERROR_INT, message, t);
}
public void log(String FQCN, Priority p, Object msg, Throwable t) {
Modified: slf4j/trunk/log4j-over-slf4j/src/main/java/org/apache/log4j/Logger.java
==============================================================================
--- slf4j/trunk/log4j-over-slf4j/src/main/java/org/apache/log4j/Logger.java (original)
+++ slf4j/trunk/log4j-over-slf4j/src/main/java/org/apache/log4j/Logger.java Fri Apr 17 18:49:35 2009
@@ -65,7 +65,7 @@
* Delegates to {@link org.slf4j.Logger#trace(String)} method in SLF4J.
*/
public void trace(Object message) {
- innerLog(null, LOGGER_FQCN, LocationAwareLogger.TRACE_INT, message, null);
+ differentiatedLog(null, LOGGER_FQCN, LocationAwareLogger.TRACE_INT, message, null);
}
/**
@@ -73,7 +73,7 @@
* method in SLF4J.
*/
public void trace(Object message, Throwable t) {
- innerLog(null, LOGGER_FQCN, LocationAwareLogger.TRACE_INT, message, null);
+ differentiatedLog(null, LOGGER_FQCN, LocationAwareLogger.TRACE_INT, message, null);
}
}
More information about the slf4j-dev
mailing list