slf4j-dev
Threads by month
- ----- 2025 -----
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- 2607 discussions

[GIT] SLF4J: Simple Logging Facade for Java branch master updated. v_1.6.6-18-g999956d
by git-noreply@pixie.qos.ch 06 Sep '12
by git-noreply@pixie.qos.ch 06 Sep '12
06 Sep '12
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "SLF4J: Simple Logging Facade for Java".
The branch, master has been updated
via 999956dd00ae500d998d2b17cea33e8b83617127 (commit)
from 255def2278b87df16f24ad119a865b0ce5cb71d1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.qos.ch/gitweb/?p=slf4j.git;a=commit;h=999956dd00ae500d998d2b17ce…
http://github.com/ceki/slf4j/commit/999956dd00ae500d998d2b17cea33e8b83617127
commit 999956dd00ae500d998d2b17cea33e8b83617127
Author: Ceki Gulcu <ceki(a)qos.ch>
Date: Thu Sep 6 23:51:29 2012 +0200
preparing release 1.7.0
diff --git a/integration/lib/slf4j-api-1.6.6.jar b/integration/lib/slf4j-api-1.6.6.jar
new file mode 100644
index 0000000..4c03fa6
Binary files /dev/null and b/integration/lib/slf4j-api-1.6.6.jar differ
diff --git a/integration/lib/slf4j-simple-1.6.6.jar b/integration/lib/slf4j-simple-1.6.6.jar
new file mode 100644
index 0000000..1194ceb
Binary files /dev/null and b/integration/lib/slf4j-simple-1.6.6.jar differ
diff --git a/integration/pom.xml b/integration/pom.xml
index 3d67ab1..6a60d93 100644
--- a/integration/pom.xml
+++ b/integration/pom.xml
@@ -6,7 +6,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.7.0-SNAPSHOT</version>
+ <version>1.7.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/jcl-over-slf4j/pom.xml b/jcl-over-slf4j/pom.xml
index e7ff512..d957e00 100644
--- a/jcl-over-slf4j/pom.xml
+++ b/jcl-over-slf4j/pom.xml
@@ -4,7 +4,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.7.0-SNAPSHOT</version>
+ <version>1.7.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/jul-to-slf4j/pom.xml b/jul-to-slf4j/pom.xml
index b022a76..781bcb7 100644
--- a/jul-to-slf4j/pom.xml
+++ b/jul-to-slf4j/pom.xml
@@ -6,7 +6,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.7.0-SNAPSHOT</version>
+ <version>1.7.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/log4j-over-slf4j/pom.xml b/log4j-over-slf4j/pom.xml
index c9fbe37..bc84126 100644
--- a/log4j-over-slf4j/pom.xml
+++ b/log4j-over-slf4j/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.7.0-SNAPSHOT</version>
+ <version>1.7.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/osgi-over-slf4j/pom.xml b/osgi-over-slf4j/pom.xml
index dbd7316..9e7ad8b 100644
--- a/osgi-over-slf4j/pom.xml
+++ b/osgi-over-slf4j/pom.xml
@@ -3,7 +3,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.6.7-SNAPSHOT</version>
+ <version>1.7.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/pom.xml b/pom.xml
index b8ec0ec..8aae62a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,7 +7,7 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.7.0-SNAPSHOT</version>
+ <version>1.7.0</version>
<packaging>pom</packaging>
<name>SLF4J</name>
diff --git a/slf4j-api/pom.xml b/slf4j-api/pom.xml
index 99b76bd..2bc4f11 100644
--- a/slf4j-api/pom.xml
+++ b/slf4j-api/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.7.0-SNAPSHOT</version>
+ <version>1.7.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/slf4j-ext/pom.xml b/slf4j-ext/pom.xml
index cdeded4..ab35aaf 100644
--- a/slf4j-ext/pom.xml
+++ b/slf4j-ext/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.7.0-SNAPSHOT</version>
+ <version>1.7.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/slf4j-jcl/pom.xml b/slf4j-jcl/pom.xml
index efa4df8..7c0cb23 100644
--- a/slf4j-jcl/pom.xml
+++ b/slf4j-jcl/pom.xml
@@ -3,7 +3,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.7.0-SNAPSHOT</version>
+ <version>1.7.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/slf4j-jdk14/pom.xml b/slf4j-jdk14/pom.xml
index b63c8a1..2f8a631 100644
--- a/slf4j-jdk14/pom.xml
+++ b/slf4j-jdk14/pom.xml
@@ -6,7 +6,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.7.0-SNAPSHOT</version>
+ <version>1.7.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/slf4j-log4j12/pom.xml b/slf4j-log4j12/pom.xml
index 76a11e4..2b9b32f 100644
--- a/slf4j-log4j12/pom.xml
+++ b/slf4j-log4j12/pom.xml
@@ -6,7 +6,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.7.0-SNAPSHOT</version>
+ <version>1.7.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/slf4j-migrator/pom.xml b/slf4j-migrator/pom.xml
index 966968c..60be47f 100644
--- a/slf4j-migrator/pom.xml
+++ b/slf4j-migrator/pom.xml
@@ -7,7 +7,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.7.0-SNAPSHOT</version>
+ <version>1.7.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/slf4j-nop/pom.xml b/slf4j-nop/pom.xml
index 105eee5..e22b2cc 100644
--- a/slf4j-nop/pom.xml
+++ b/slf4j-nop/pom.xml
@@ -6,7 +6,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.7.0-SNAPSHOT</version>
+ <version>1.7.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/slf4j-simple/pom.xml b/slf4j-simple/pom.xml
index adf2eff..e03cf95 100644
--- a/slf4j-simple/pom.xml
+++ b/slf4j-simple/pom.xml
@@ -4,7 +4,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.7.0-SNAPSHOT</version>
+ <version>1.7.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/slf4j-site/pom.xml b/slf4j-site/pom.xml
index 4418586..46a0675 100644
--- a/slf4j-site/pom.xml
+++ b/slf4j-site/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.7.0-SNAPSHOT</version>
+ <version>1.7.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
-----------------------------------------------------------------------
Summary of changes:
integration/lib/slf4j-api-1.6.6.jar | Bin 0 -> 26176 bytes
integration/lib/slf4j-simple-1.6.6.jar | Bin 0 -> 10336 bytes
integration/pom.xml | 2 +-
jcl-over-slf4j/pom.xml | 2 +-
jul-to-slf4j/pom.xml | 2 +-
log4j-over-slf4j/pom.xml | 2 +-
osgi-over-slf4j/pom.xml | 2 +-
pom.xml | 2 +-
slf4j-api/pom.xml | 2 +-
slf4j-ext/pom.xml | 2 +-
slf4j-jcl/pom.xml | 2 +-
slf4j-jdk14/pom.xml | 2 +-
slf4j-log4j12/pom.xml | 2 +-
slf4j-migrator/pom.xml | 2 +-
slf4j-nop/pom.xml | 2 +-
slf4j-simple/pom.xml | 2 +-
slf4j-site/pom.xml | 2 +-
17 files changed, 15 insertions(+), 15 deletions(-)
create mode 100644 integration/lib/slf4j-api-1.6.6.jar
create mode 100644 integration/lib/slf4j-simple-1.6.6.jar
hooks/post-receive
--
SLF4J: Simple Logging Facade for Java
1
0
Branch: refs/heads/master
Home: https://github.com/qos-ch/slf4j
Commit: 999956dd00ae500d998d2b17cea33e8b83617127
https://github.com/qos-ch/slf4j/commit/999956dd00ae500d998d2b17cea33e8b8361…
Author: Ceki Gulcu <ceki(a)qos.ch>
Date: 2012-09-06 (Thu, 06 Sep 2012)
Changed paths:
A integration/lib/slf4j-api-1.6.6.jar
A integration/lib/slf4j-simple-1.6.6.jar
M integration/pom.xml
M jcl-over-slf4j/pom.xml
M jul-to-slf4j/pom.xml
M log4j-over-slf4j/pom.xml
M osgi-over-slf4j/pom.xml
M pom.xml
M slf4j-api/pom.xml
M slf4j-ext/pom.xml
M slf4j-jcl/pom.xml
M slf4j-jdk14/pom.xml
M slf4j-log4j12/pom.xml
M slf4j-migrator/pom.xml
M slf4j-nop/pom.xml
M slf4j-simple/pom.xml
M slf4j-site/pom.xml
Log Message:
-----------
preparing release 1.7.0
1
0

[GIT] SLF4J: Simple Logging Facade for Java branch master updated. v_1.6.6-17-g255def2
by git-noreply@pixie.qos.ch 06 Sep '12
by git-noreply@pixie.qos.ch 06 Sep '12
06 Sep '12
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "SLF4J: Simple Logging Facade for Java".
The branch, master has been updated
via 255def2278b87df16f24ad119a865b0ce5cb71d1 (commit)
from 86eaa9cf19193c9e8c471283b23149aa87a88573 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.qos.ch/gitweb/?p=slf4j.git;a=commit;h=255def2278b87df16f24ad119a…
http://github.com/ceki/slf4j/commit/255def2278b87df16f24ad119a865b0ce5cb71d1
commit 255def2278b87df16f24ad119a865b0ce5cb71d1
Author: Ceki Gulcu <ceki(a)qos.ch>
Date: Thu Sep 6 23:46:19 2012 +0200
avoid version mismatch warning (when run with slf4j-api-1.6.jar) by setting REQUESTED_VERSION to 1.6.99 instead of 1.7
diff --git a/integration/build.xml b/integration/build.xml
index 9652ce3..d3a5d5a 100644
--- a/integration/build.xml
+++ b/integration/build.xml
@@ -67,10 +67,10 @@
<pathelement location="../slf4j-nop/target/slf4j-nop-${currentVersion}.jar" />
</path >
- <path id="binding1699">
+ <path id="binding166">
<pathelement location="target/test-classes/" />
<pathelement location="../slf4j-api/target/slf4j-api-${currentVersion}.jar" />
- <pathelement location="./lib/slf4j-simple-1.6.99.jar" />
+ <pathelement location="./lib/slf4j-simple-1.6.6.jar" />
</path >
<path id="binding2099">
@@ -80,10 +80,10 @@
</path >
- <path id="api1699">
+ <path id="api166">
<pathelement location="target/test-classes/" />
<pathelement location="../slf4j-simple/target/slf4j-simple-${currentVersion}.jar" />
- <pathelement location="./lib/slf4j-api-1.6.99.jar" />
+ <pathelement location="./lib/slf4j-api-1.6.6.jar" />
</path >
@@ -180,19 +180,19 @@
<target name="testFuture_16Series">
<junit printsummary="yes" fork="no" haltonfailure="yes">
- <classpath refid="binding1699" />
+ <classpath refid="binding166" />
<formatter type="plain" />
<test fork="yes" todir="target/unit-reports"
- outfile="TEST-binding1699"
+ outfile="TEST-binding166"
name="org.slf4j.CompatibilityAssertionTest" />
</junit>
<junit printsummary="yes" fork="no" haltonfailure="yes">
- <classpath refid="api1699" />
+ <classpath refid="api166" />
<formatter type="plain" />
<test fork="yes" todir="target/unit-reports"
- outfile="TEST-api1699"
+ outfile="TEST-api166"
name="org.slf4j.CompatibilityAssertionTest" />
</junit>
diff --git a/slf4j-api/src/main/java/org/slf4j/Logger.java b/slf4j-api/src/main/java/org/slf4j/Logger.java
index 83e60e8..8853285 100644
--- a/slf4j-api/src/main/java/org/slf4j/Logger.java
+++ b/slf4j-api/src/main/java/org/slf4j/Logger.java
@@ -26,15 +26,15 @@
package org.slf4j;
/**
- * The org.slf4j.Logger interface is the main user entry point of SLF4J API.
- * It is expected that logging takes place through concrete implementations
+ * The org.slf4j.Logger interface is the main user entry point of SLF4J API.
+ * It is expected that logging takes place through concrete implementations
* of this interface.
- *
+ * <p/>
* <h3>Typical usage pattern:</h3>
* <pre>
* import org.slf4j.Logger;
* import org.slf4j.LoggerFactory;
- *
+ *
* public class Wombat {
*
* <span style="color:green">final static Logger logger = LoggerFactory.getLogger(Wombat.class);</span>
@@ -42,7 +42,7 @@ package org.slf4j;
* Integer oldT;
*
* public void setTemperature(Integer temperature) {
- * oldT = t;
+ * oldT = t;
* t = temperature;
* <span style="color:green">logger.debug("Temperature set to {}. Old temperature was {}.", t, oldT);</span>
* if(temperature.intValue() > 50) {
@@ -50,10 +50,8 @@ package org.slf4j;
* }
* }
* }
- </pre>
-
-
-
+ * </pre>
+ *
* @author Ceki Gülcü
*/
public interface Logger {
@@ -61,10 +59,11 @@ public interface Logger {
/**
* Case insensitive String constant used to retrieve the name of the root logger.
+ *
* @since 1.3
*/
final public String ROOT_LOGGER_NAME = "ROOT";
-
+
/**
* Return the name of this <code>Logger</code> instance.
*/
@@ -72,13 +71,13 @@ public interface Logger {
/**
* Is the logger instance enabled for the TRACE level?
+ *
* @return True if this Logger is enabled for the TRACE level,
- * false otherwise.
- *
+ * false otherwise.
* @since 1.4
*/
public boolean isTraceEnabled();
-
+
/**
* Log a message at the TRACE level.
@@ -88,34 +87,31 @@ public interface Logger {
*/
public void trace(String msg);
-
+
/**
* Log a message at the TRACE level according to the specified format
* and argument.
- *
+ * <p/>
* <p>This form avoids superfluous object creation when the logger
* is disabled for the TRACE level. </p>
*
- * @param format the format string
- * @param arg the argument
- *
+ * @param format the format string
+ * @param arg the argument
* @since 1.4
*/
public void trace(String format, Object arg);
-
/**
* Log a message at the TRACE level according to the specified format
* and arguments.
- *
+ * <p/>
* <p>This form avoids superfluous object creation when the logger
* is disabled for the TRACE level. </p>
*
* @param format the format string
- * @param arg1 the first argument
- * @param arg2 the second argument
- *
+ * @param arg1 the first argument
+ * @param arg2 the second argument
* @since 1.4
*/
public void trace(String format, Object arg1, Object arg2);
@@ -123,72 +119,69 @@ public interface Logger {
/**
* Log a message at the TRACE level according to the specified format
* and arguments.
- *
- * <p>This form avoids superfluous object creation when the logger
- * is disabled for the TRACE level. </p>
+ * <p/>
+ * <p>This form avoids superfluous string concatenation when the logger
+ * is disabled for the TRACE level. However, this variant incurs the hidden
+ * (and relatively small) cost of creating an <code>Object[]</code> before invoking the method,
+ * even if this logger is disabled for TRACE. The variants taking {@link #trace(String, Object) one} and
+ * {@link #trace(String, Object, Object) two} arguments exist solely in order to avoid this hidden cost.</p>
*
- * @param format the format string
+ * @param format the format string
* @param arguments a list of 3 or more arguments
- *
* @since 1.4
*/
public void trace(String format, Object... arguments);
-
+
/**
* Log an exception (throwable) at the TRACE level with an
- * accompanying message.
- *
+ * accompanying message.
+ *
* @param msg the message accompanying the exception
- * @param t the exception (throwable) to log
- *
+ * @param t the exception (throwable) to log
* @since 1.4
- */
+ */
public void trace(String msg, Throwable t);
-
-
+
+
/**
* Similar to {@link #isTraceEnabled()} method except that the
* marker data is also taken into account.
- *
+ *
* @param marker The marker data to take into consideration
- *
* @since 1.4
*/
public boolean isTraceEnabled(Marker marker);
-
+
/**
* Log a message with the specific Marker at the TRACE level.
- *
+ *
* @param marker the marker data specific to this log statement
- * @param msg the message string to be logged
- *
+ * @param msg the message string to be logged
* @since 1.4
*/
public void trace(Marker marker, String msg);
-
+
/**
- * This method is similar to {@link #trace(String, Object)} method except that the
+ * This method is similar to {@link #trace(String, Object)} method except that the
* marker data is also taken into consideration.
- *
+ *
* @param marker the marker data specific to this log statement
* @param format the format string
- * @param arg the argument
- *
+ * @param arg the argument
* @since 1.4
*/
public void trace(Marker marker, String format, Object arg);
-
-
+
+
/**
* This method is similar to {@link #trace(String, Object, Object)}
* method except that the marker data is also taken into
* consideration.
*
* @param marker the marker data specific to this log statement
- * @param format the format string
- * @param arg1 the first argument
- * @param arg2 the second argument
- *
+ * @param format the format string
+ * @param arg1 the first argument
+ * @param arg2 the second argument
* @since 1.4
*/
public void trace(Marker marker, String format, Object arg1, Object arg2);
@@ -198,130 +191,131 @@ public interface Logger {
* method except that the marker data is also taken into
* consideration.
*
- * @param marker the marker data specific to this log statement
- * @param format the format string
+ * @param marker the marker data specific to this log statement
+ * @param format the format string
* @param argArray an array of arguments
- *
* @since 1.4
*/
public void trace(Marker marker, String format, Object... argArray);
-
+
/**
* This method is similar to {@link #trace(String, Throwable)} method except that the
* marker data is also taken into consideration.
- *
+ *
* @param marker the marker data specific to this log statement
- * @param msg the message accompanying the exception
- * @param t the exception (throwable) to log
- *
+ * @param msg the message accompanying the exception
+ * @param t the exception (throwable) to log
* @since 1.4
- */
+ */
public void trace(Marker marker, String msg, Throwable t);
-
+
/**
* Is the logger instance enabled for the DEBUG level?
+ *
* @return True if this Logger is enabled for the DEBUG level,
- * false otherwise.
- *
+ * false otherwise.
*/
public boolean isDebugEnabled();
-
-
+
+
/**
* Log a message at the DEBUG level.
*
* @param msg the message string to be logged
*/
public void debug(String msg);
-
-
+
+
/**
* Log a message at the DEBUG level according to the specified format
* and argument.
- *
+ * <p/>
* <p>This form avoids superfluous object creation when the logger
* is disabled for the DEBUG level. </p>
*
- * @param format the format string
- * @param arg the argument
+ * @param format the format string
+ * @param arg the argument
*/
public void debug(String format, Object arg);
-
/**
* Log a message at the DEBUG level according to the specified format
* and arguments.
- *
+ * <p/>
* <p>This form avoids superfluous object creation when the logger
* is disabled for the DEBUG level. </p>
*
* @param format the format string
- * @param arg1 the first argument
- * @param arg2 the second argument
+ * @param arg1 the first argument
+ * @param arg2 the second argument
*/
public void debug(String format, Object arg1, Object arg2);
/**
* Log a message at the DEBUG level according to the specified format
* and arguments.
- *
- * <p>This form avoids superfluous object creation when the logger
- * is disabled for the DEBUG level. </p>
+ * <p/>
+ * <p>This form avoids superfluous string concatenation when the logger
+ * is disabled for the DEBUG level. However, this variant incurs the hidden
+ * (and relatively small) cost of creating an <code>Object[]</code> before invoking the method,
+ * even if this logger is disabled for DEBUG. The variants taking
+ * {@link #debug(String, Object) one} and {@link #debug(String, Object, Object) two}
+ * arguments exist solely in order to avoid this hidden cost.</p>
*
- * @param format the format string
+ * @param format the format string
* @param arguments a list of 3 or more arguments
*/
public void debug(String format, Object... arguments);
-
+
/**
* Log an exception (throwable) at the DEBUG level with an
- * accompanying message.
- *
+ * accompanying message.
+ *
* @param msg the message accompanying the exception
- * @param t the exception (throwable) to log
- */
+ * @param t the exception (throwable) to log
+ */
public void debug(String msg, Throwable t);
-
-
+
+
/**
* Similar to {@link #isDebugEnabled()} method except that the
* marker data is also taken into account.
- *
+ *
* @param marker The marker data to take into consideration
*/
public boolean isDebugEnabled(Marker marker);
-
+
/**
* Log a message with the specific Marker at the DEBUG level.
- *
+ *
* @param marker the marker data specific to this log statement
- * @param msg the message string to be logged
+ * @param msg the message string to be logged
*/
public void debug(Marker marker, String msg);
-
+
/**
- * This method is similar to {@link #debug(String, Object)} method except that the
+ * This method is similar to {@link #debug(String, Object)} method except that the
* marker data is also taken into consideration.
- *
+ *
* @param marker the marker data specific to this log statement
* @param format the format string
- * @param arg the argument
+ * @param arg the argument
*/
public void debug(Marker marker, String format, Object arg);
-
-
+
+
/**
* This method is similar to {@link #debug(String, Object, Object)}
* method except that the marker data is also taken into
* consideration.
*
* @param marker the marker data specific to this log statement
- * @param format the format string
- * @param arg1 the first argument
- * @param arg2 the second argument
+ * @param format the format string
+ * @param arg1 the first argument
+ * @param arg2 the second argument
*/
public void debug(Marker marker, String format, Object arg1, Object arg2);
@@ -330,84 +324,89 @@ public interface Logger {
* method except that the marker data is also taken into
* consideration.
*
- * @param marker the marker data specific to this log statement
- * @param format the format string
+ * @param marker the marker data specific to this log statement
+ * @param format the format string
* @param arguments a list of 3 or more arguments
*/
public void debug(Marker marker, String format, Object... arguments);
-
+
/**
* This method is similar to {@link #debug(String, Throwable)} method except that the
* marker data is also taken into consideration.
- *
+ *
* @param marker the marker data specific to this log statement
- * @param msg the message accompanying the exception
- * @param t the exception (throwable) to log
- */
+ * @param msg the message accompanying the exception
+ * @param t the exception (throwable) to log
+ */
public void debug(Marker marker, String msg, Throwable t);
-
-
+
+
/**
* Is the logger instance enabled for the INFO level?
+ *
* @return True if this Logger is enabled for the INFO level,
- * false otherwise.
+ * false otherwise.
*/
public boolean isInfoEnabled();
-
+
/**
* Log a message at the INFO level.
*
* @param msg the message string to be logged
*/
public void info(String msg);
-
+
/**
* Log a message at the INFO level according to the specified format
* and argument.
- *
+ * <p/>
* <p>This form avoids superfluous object creation when the logger
* is disabled for the INFO level. </p>
*
- * @param format the format string
- * @param arg the argument
+ * @param format the format string
+ * @param arg the argument
*/
public void info(String format, Object arg);
-
+
/**
* Log a message at the INFO level according to the specified format
* and arguments.
- *
+ * <p/>
* <p>This form avoids superfluous object creation when the logger
* is disabled for the INFO level. </p>
*
* @param format the format string
- * @param arg1 the first argument
- * @param arg2 the second argument
+ * @param arg1 the first argument
+ * @param arg2 the second argument
*/
public void info(String format, Object arg1, Object arg2);
/**
* Log a message at the INFO level according to the specified format
* and arguments.
- *
- * <p>This form avoids superfluous object creation when the logger
- * is disabled for the INFO level. </p>
+ * <p/>
+ * <p>This form avoids superfluous string concatenation when the logger
+ * is disabled for the INFO level. However, this variant incurs the hidden
+ * (and relatively small) cost of creating an <code>Object[]</code> before invoking the method,
+ * even if this logger is disabled for INFO. The variants taking
+ * {@link #info(String, Object) one} and {@link #info(String, Object, Object) two}
+ * arguments exist solely in order to avoid this hidden cost.</p>
*
- * @param format the format string
+ * @param format the format string
* @param arguments a list of 3 or more arguments
*/
public void info(String format, Object... arguments);
-
+
/**
* Log an exception (throwable) at the INFO level with an
- * accompanying message.
- *
+ * accompanying message.
+ *
* @param msg the message accompanying the exception
- * @param t the exception (throwable) to log
+ * @param t the exception (throwable) to log
*/
public void info(String msg, Throwable t);
@@ -418,65 +417,66 @@ public interface Logger {
* @param marker The marker data to take into consideration
*/
public boolean isInfoEnabled(Marker marker);
-
+
/**
* Log a message with the specific Marker at the INFO level.
- *
+ *
* @param marker The marker specific to this log statement
- * @param msg the message string to be logged
+ * @param msg the message string to be logged
*/
public void info(Marker marker, String msg);
-
+
/**
- * This method is similar to {@link #info(String, Object)} method except that the
+ * This method is similar to {@link #info(String, Object)} method except that the
* marker data is also taken into consideration.
*
* @param marker the marker data specific to this log statement
* @param format the format string
- * @param arg the argument
+ * @param arg the argument
*/
public void info(Marker marker, String format, Object arg);
-
+
/**
* This method is similar to {@link #info(String, Object, Object)}
* method except that the marker data is also taken into
* consideration.
- *
+ *
* @param marker the marker data specific to this log statement
- * @param format the format string
- * @param arg1 the first argument
- * @param arg2 the second argument
+ * @param format the format string
+ * @param arg1 the first argument
+ * @param arg2 the second argument
*/
- public void info(Marker marker, String format, Object arg1, Object arg2);
-
-
+ public void info(Marker marker, String format, Object arg1, Object arg2);
+
+
/**
* This method is similar to {@link #info(String, Object...)}
* method except that the marker data is also taken into
* consideration.
*
- * @param marker the marker data specific to this log statement
- * @param format the format string
+ * @param marker the marker data specific to this log statement
+ * @param format the format string
* @param arguments a list of 3 or more arguments
*/
public void info(Marker marker, String format, Object... arguments);
-
+
/**
* This method is similar to {@link #info(String, Throwable)} method
* except that the marker data is also taken into consideration.
- *
+ *
* @param marker the marker data for this log statement
- * @param msg the message accompanying the exception
- * @param t the exception (throwable) to log
- */
- public void info(Marker marker, String msg, Throwable t);
+ * @param msg the message accompanying the exception
+ * @param t the exception (throwable) to log
+ */
+ public void info(Marker marker, String msg, Throwable t);
+
-
/**
* Is the logger instance enabled for the WARN level?
+ *
* @return True if this Logger is enabled for the WARN level,
- * false otherwise.
+ * false otherwise.
*/
public boolean isWarnEnabled();
@@ -487,53 +487,57 @@ public interface Logger {
*/
public void warn(String msg);
- /**
+ /**
* Log a message at the WARN level according to the specified format
* and argument.
- *
+ * <p/>
* <p>This form avoids superfluous object creation when the logger
* is disabled for the WARN level. </p>
*
- * @param format the format string
- * @param arg the argument
+ * @param format the format string
+ * @param arg the argument
*/
public void warn(String format, Object arg);
-
+
/**
* Log a message at the WARN level according to the specified format
* and arguments.
- *
- * <p>This form avoids superfluous object creation when the logger
- * is disabled for the WARN level. </p>
+ * <p/>
+ * <p>This form avoids superfluous string concatenation when the logger
+ * is disabled for the WARN level. However, this variant incurs the hidden
+ * (and relatively small) cost of creating an <code>Object[]</code> before invoking the method,
+ * even if this logger is disabled for WARN. The variants taking
+ * {@link #warn(String, Object) one} and {@link #warn(String, Object, Object) two}
+ * arguments exist solely in order to avoid this hidden cost.</p>
*
- * @param format the format string
+ * @param format the format string
* @param arguments a list of 3 or more arguments
*/
public void warn(String format, Object... arguments);
-
+
/**
* Log a message at the WARN level according to the specified format
* and arguments.
- *
+ * <p/>
* <p>This form avoids superfluous object creation when the logger
* is disabled for the WARN level. </p>
*
* @param format the format string
- * @param arg1 the first argument
- * @param arg2 the second argument
+ * @param arg1 the first argument
+ * @param arg2 the second argument
*/
public void warn(String format, Object arg1, Object arg2);
-
+
/**
* Log an exception (throwable) at the WARN level with an
- * accompanying message.
- *
+ * accompanying message.
+ *
* @param msg the message accompanying the exception
- * @param t the exception (throwable) to log
+ * @param t the exception (throwable) to log
*/
public void warn(String msg, Throwable t);
-
+
/**
* Similar to {@link #isWarnEnabled()} method except that the marker
@@ -542,117 +546,122 @@ public interface Logger {
* @param marker The marker data to take into consideration
*/
public boolean isWarnEnabled(Marker marker);
-
+
/**
* Log a message with the specific Marker at the WARN level.
- *
+ *
* @param marker The marker specific to this log statement
- * @param msg the message string to be logged
+ * @param msg the message string to be logged
*/
- public void warn(Marker marker, String msg);
-
+ public void warn(Marker marker, String msg);
+
/**
- * This method is similar to {@link #warn(String, Object)} method except that the
+ * This method is similar to {@link #warn(String, Object)} method except that the
* marker data is also taken into consideration.
- *
+ *
* @param marker the marker data specific to this log statement
* @param format the format string
- * @param arg the argument
+ * @param arg the argument
*/
public void warn(Marker marker, String format, Object arg);
-
+
/**
* This method is similar to {@link #warn(String, Object, Object)}
* method except that the marker data is also taken into
* consideration.
- *
+ *
* @param marker the marker data specific to this log statement
- * @param format the format string
- * @param arg1 the first argument
- * @param arg2 the second argument
+ * @param format the format string
+ * @param arg1 the first argument
+ * @param arg2 the second argument
*/
- public void warn(Marker marker, String format, Object arg1, Object arg2);
-
+ public void warn(Marker marker, String format, Object arg1, Object arg2);
+
/**
* This method is similar to {@link #warn(String, Object...)}
* method except that the marker data is also taken into
* consideration.
*
- * @param marker the marker data specific to this log statement
- * @param format the format string
+ * @param marker the marker data specific to this log statement
+ * @param format the format string
* @param arguments a list of 3 or more arguments
*/
public void warn(Marker marker, String format, Object... arguments);
-
+
/**
* This method is similar to {@link #warn(String, Throwable)} method
* except that the marker data is also taken into consideration.
- *
+ *
* @param marker the marker data for this log statement
- * @param msg the message accompanying the exception
- * @param t the exception (throwable) to log
- */
- public void warn(Marker marker, String msg, Throwable t);
-
+ * @param msg the message accompanying the exception
+ * @param t the exception (throwable) to log
+ */
+ public void warn(Marker marker, String msg, Throwable t);
+
/**
* Is the logger instance enabled for the ERROR level?
+ *
* @return True if this Logger is enabled for the ERROR level,
- * false otherwise.
+ * false otherwise.
*/
public boolean isErrorEnabled();
-
+
/**
* Log a message at the ERROR level.
*
* @param msg the message string to be logged
*/
public void error(String msg);
-
- /**
+
+ /**
* Log a message at the ERROR level according to the specified format
* and argument.
- *
+ * <p/>
* <p>This form avoids superfluous object creation when the logger
* is disabled for the ERROR level. </p>
*
- * @param format the format string
- * @param arg the argument
+ * @param format the format string
+ * @param arg the argument
*/
public void error(String format, Object arg);
/**
* Log a message at the ERROR level according to the specified format
* and arguments.
- *
+ * <p/>
* <p>This form avoids superfluous object creation when the logger
* is disabled for the ERROR level. </p>
*
* @param format the format string
- * @param arg1 the first argument
- * @param arg2 the second argument
+ * @param arg1 the first argument
+ * @param arg2 the second argument
*/
public void error(String format, Object arg1, Object arg2);
/**
* Log a message at the ERROR level according to the specified format
* and arguments.
- *
- * <p>This form avoids superfluous object creation when the logger
- * is disabled for the ERROR level. </p>
+ * <p/>
+ * <p>This form avoids superfluous string concatenation when the logger
+ * is disabled for the ERROR level. However, this variant incurs the hidden
+ * (and relatively small) cost of creating an <code>Object[]</code> before invoking the method,
+ * even if this logger is disabled for ERROR. The variants taking
+ * {@link #error(String, Object) one} and {@link #error(String, Object, Object) two}
+ * arguments exist solely in order to avoid this hidden cost.</p>
*
- * @param format the format string
+ * @param format the format string
* @param arguments a list of 3 or more arguments
*/
public void error(String format, Object... arguments);
-
+
/**
* Log an exception (throwable) at the ERROR level with an
- * accompanying message.
- *
+ * accompanying message.
+ *
* @param msg the message accompanying the exception
- * @param t the exception (throwable) to log
+ * @param t the exception (throwable) to log
*/
public void error(String msg, Throwable t);
@@ -664,58 +673,58 @@ public interface Logger {
* @param marker The marker data to take into consideration
*/
public boolean isErrorEnabled(Marker marker);
-
+
/**
* Log a message with the specific Marker at the ERROR level.
- *
+ *
* @param marker The marker specific to this log statement
- * @param msg the message string to be logged
+ * @param msg the message string to be logged
*/
- public void error(Marker marker, String msg);
-
+ public void error(Marker marker, String msg);
+
/**
- * This method is similar to {@link #error(String, Object)} method except that the
+ * This method is similar to {@link #error(String, Object)} method except that the
* marker data is also taken into consideration.
- *
+ *
* @param marker the marker data specific to this log statement
* @param format the format string
- * @param arg the argument
+ * @param arg the argument
*/
public void error(Marker marker, String format, Object arg);
-
+
/**
* This method is similar to {@link #error(String, Object, Object)}
* method except that the marker data is also taken into
* consideration.
- *
+ *
* @param marker the marker data specific to this log statement
- * @param format the format string
- * @param arg1 the first argument
- * @param arg2 the second argument
+ * @param format the format string
+ * @param arg1 the first argument
+ * @param arg2 the second argument
*/
- public void error(Marker marker, String format, Object arg1, Object arg2);
-
+ public void error(Marker marker, String format, Object arg1, Object arg2);
+
/**
* This method is similar to {@link #error(String, Object...)}
* method except that the marker data is also taken into
* consideration.
*
- * @param marker the marker data specific to this log statement
- * @param format the format string
+ * @param marker the marker data specific to this log statement
+ * @param format the format string
* @param arguments a list of 3 or more arguments
*/
public void error(Marker marker, String format, Object... arguments);
-
+
/**
* This method is similar to {@link #error(String, Throwable)}
* method except that the marker data is also taken into
* consideration.
- *
+ *
* @param marker the marker data specific to this log statement
- * @param msg the message accompanying the exception
- * @param t the exception (throwable) to log
- */
+ * @param msg the message accompanying the exception
+ * @param t the exception (throwable) to log
+ */
public void error(Marker marker, String msg, Throwable t);
}
diff --git a/slf4j-api/src/main/java/org/slf4j/impl/StaticLoggerBinder.java b/slf4j-api/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
index 606a406..7148e80 100644
--- a/slf4j-api/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
+++ b/slf4j-api/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
@@ -57,7 +57,7 @@ public class StaticLoggerBinder {
* The value of this field is usually modified with each release.
*/
// to avoid constant folding by the compiler, this field must *not* be final
- public static String REQUESTED_API_VERSION = "1.7"; // !final
+ public static String REQUESTED_API_VERSION = "1.6.99"; // !final
private StaticLoggerBinder() {
throw new UnsupportedOperationException("This code should have never made it into slf4j-api.jar");
diff --git a/slf4j-jcl/src/main/java/org/slf4j/impl/StaticLoggerBinder.java b/slf4j-jcl/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
index fca85e5..6705d55 100644
--- a/slf4j-jcl/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
+++ b/slf4j-jcl/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
@@ -56,7 +56,7 @@ public class StaticLoggerBinder implements LoggerFactoryBinder {
*/
//to avoid constant folding by the compiler, this field must *not* be final
- public static String REQUESTED_API_VERSION = "1.7";
+ public static String REQUESTED_API_VERSION = "1.6.99";
// Binding specific code:
private static final String loggerFactoryClassStr = JCLLoggerFactory.class
diff --git a/slf4j-jdk14/src/main/java/org/slf4j/impl/StaticLoggerBinder.java b/slf4j-jdk14/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
index b90e885..ecc7b26 100644
--- a/slf4j-jdk14/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
+++ b/slf4j-jdk14/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
@@ -57,7 +57,7 @@ public class StaticLoggerBinder implements LoggerFactoryBinder {
* The value of this field is usually modified with each release.
*/
// to avoid constant folding by the compiler, this field must *not* be final
- public static String REQUESTED_API_VERSION = "1.7"; // !final
+ public static String REQUESTED_API_VERSION = "1.6.99"; // !final
private static final String loggerFactoryClassStr = org.slf4j.impl.JDK14LoggerFactory.class.getName();
diff --git a/slf4j-jdk14/src/test/java/org/slf4j/InvocationTest.java b/slf4j-jdk14/src/test/java/org/slf4j/InvocationTest.java
index 5453523..8c14dfa 100644
--- a/slf4j-jdk14/src/test/java/org/slf4j/InvocationTest.java
+++ b/slf4j-jdk14/src/test/java/org/slf4j/InvocationTest.java
@@ -71,7 +71,7 @@ public class InvocationTest extends TestCase {
logger.debug("Hello world {}", i1);
logger.debug("val={} val={}", i1, i2);
logger.debug("val={} val={} val={}", new Object[]{i1, i2, i3});
-
+
logger.debug("Hello world 2", e);
logger.info("Hello world 2.");
diff --git a/slf4j-log4j12/src/main/java/org/slf4j/impl/StaticLoggerBinder.java b/slf4j-log4j12/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
index 7be00e7..43d3b24 100644
--- a/slf4j-log4j12/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
+++ b/slf4j-log4j12/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
@@ -58,7 +58,7 @@ public class StaticLoggerBinder implements LoggerFactoryBinder {
* against. The value of this field is usually modified with each release.
*/
// to avoid constant folding by the compiler, this field must *not* be final
- public static String REQUESTED_API_VERSION = "1.7"; // !final
+ public static String REQUESTED_API_VERSION = "1.6.99"; // !final
private static final String loggerFactoryClassStr = Log4jLoggerFactory.class
.getName();
diff --git a/slf4j-nop/src/main/java/org/slf4j/impl/StaticLoggerBinder.java b/slf4j-nop/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
index ab7c824..61f0599 100644
--- a/slf4j-nop/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
+++ b/slf4j-nop/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
@@ -58,7 +58,7 @@ public class StaticLoggerBinder implements LoggerFactoryBinder {
* The value of this field is usually modified with each release.
*/
// to avoid constant folding by the compiler, this field must *not* be final
- public static String REQUESTED_API_VERSION = "1.7"; // !final
+ public static String REQUESTED_API_VERSION = "1.6.99"; // !final
private static final String loggerFactoryClassStr = NOPLoggerFactory.class.getName();
diff --git a/slf4j-simple/src/main/java/org/slf4j/impl/StaticLoggerBinder.java b/slf4j-simple/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
index 28980a9..92a995e 100644
--- a/slf4j-simple/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
+++ b/slf4j-simple/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
@@ -58,7 +58,7 @@ public class StaticLoggerBinder implements LoggerFactoryBinder {
* against. The value of this field is usually modified with each release.
*/
// to avoid constant folding by the compiler, this field must *not* be final
- public static String REQUESTED_API_VERSION = "1.7"; // !final
+ public static String REQUESTED_API_VERSION = "1.6.99"; // !final
private static final String loggerFactoryClassStr = SimpleLoggerFactory.class.getName();
diff --git a/slf4j-site/src/site/pages/faq.html b/slf4j-site/src/site/pages/faq.html
index e80021a..bef02f6 100644
--- a/slf4j-site/src/site/pages/faq.html
+++ b/slf4j-site/src/site/pages/faq.html
@@ -303,11 +303,9 @@
<dd>
- <p>In principle, SLF4J requires JDK 1.3 or above, in
- particular slf4j-api is compatible with JDK 1.3. However,
- the underlying logging system might have a higher
- requirement. For instance, the <em>slf4j-jdk14</em> binding
- requires JDK 1.4. Logback requires JDK 1.5.
+ <p>As of version 1.7.0, SLF4J requires JDK 1.5 or later. Earlier
+ SLF4J versions, namely SLF4J 1.4, 1.5. and 1.6, required JDK
+ 1.4.
</p>
<p> </p>
@@ -320,25 +318,25 @@
<tr>
<td>slf4j-nop</td>
- <td>JDK 1.3</td>
+ <td>JDK 1.5</td>
</tr>
<tr>
<td>slf4j-simple</td>
- <td>JDK 1.3</td>
+ <td>JDK 1.5</td>
</tr>
<tr>
<td>slf4j-log4j12</td>
- <td align="left">JDK 1.3, plus any other library
+ <td align="left">JDK 1.5, plus any other library
dependencies required by the log4j appenders in use</td>
</tr>
<tr>
<td>slf4j-jdk14</td>
- <td>JDK 1.4 or above</td>
+ <td>JDK 1.5 or later</td>
</tr>
<tr>
<td>logback-classic</td>
- <td>JDK 1.5 or above, plus any other library dependencies
+ <td>JDK 1.5 or later, plus any other library dependencies
required by the logback appenders in use</td>
</tr>
@@ -958,18 +956,27 @@ logger.debug("The entry is {}.", entry);</pre>
logger.debug("The new entry is {}.", entry);</pre>
- <p>A two argument variant is also available. For example, you
- can write:</p>
+ <p>A <a
+ href="apidocs/org/slf4j/Logger.html#debug(java.lang.String,%20java.lang.Object%2C%20java.lang.Object)">two
+ argument</a> variant is also available. For example, you can
+ write:</p>
<pre class="prettyprint source">logger.debug("The new entry is {}. It replaces {}.", entry, oldEntry);</pre>
<p>If three or more arguments need to be passed, you can make
- use of the <code>Object[]</code> variant. For example, you can
+ use of the <a
+ href="apidocs/org/slf4j/Logger.html#debug(java.lang.String%2C%20java.lang.Object...)"><code>Object...</code>
+ variant</a> of the printing methods. For example, you can
write:</p>
- <pre class="prettyprint source">logger.debug("Value {} was inserted between {} and {}.", new Object[] {newVal, below, above});</pre>
+ <pre class="prettyprint source">logger.debug("Value {} was inserted between {} and {}.", newVal, below, above);</pre>
+ <p>This form incurs the hidden cost of construction of an
+ Object[] (object array) which is usually very small. The one and
+ two argument variants do not incur this hidden cost and exist
+ solely for this reason (efficiency). The slf4j-api would be
+ smaller/cleaner with only the Object... variant.</p>
<p>Array type arguments, including multi-dimensional arrays,
diff --git a/slf4j-site/src/site/pages/manual.html b/slf4j-site/src/site/pages/manual.html
index ce4b5b6..a5aeeb6 100644
--- a/slf4j-site/src/site/pages/manual.html
+++ b/slf4j-site/src/site/pages/manual.html
@@ -35,6 +35,14 @@
implementation.
</p>
+ <p><span class="label">since 1.7.0</span> In order to support <a
+ href="http://docs.oracle.com/javase/1.5.0/docs/guide/language/varargs.html">varargs</a>,
+ SLF4J version 1.7.0 and later require JDK 1.5 or greater. Given
+ that under the hood, the Java compiler transforms the varaargs
+ part in methods into an array, SLF4J version 1.7.0 is 100% binary
+ compatible, i.e. indistinguishable, from SLF4J version 1.6.x.
+ </p>
+
<h3 class="doAnchor" name="hello_world">Hello World</h3>
<p>As customary in programming tradition, here is an example
@@ -419,8 +427,9 @@ SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further detail
<td>Due to the way that classes are loaded by the JVM, the
framework binding will be verified automatically very early
- on. SLF4J will abort execution with a warning if no binding
- is present.
+ on. If SLF4J cannot find a binding on the class path it
+ will emit a signle warning message and default to
+ no-operation implementation.
</td>
</tr>
diff --git a/slf4j-site/src/site/pages/news.html b/slf4j-site/src/site/pages/news.html
index 88713a2..7ac1a61 100644
--- a/slf4j-site/src/site/pages/news.html
+++ b/slf4j-site/src/site/pages/news.html
@@ -29,7 +29,17 @@
<hr noshade="noshade" size="1"/>
- <h3>2012 - Release of SLF4J 1.6.7</h3>
+ <h3>6th of September, 2012 - Release of SLF4J 1.7.0</h3>
+
+ <p><span class="bold">SLF4J now requires JDK 1.5.</span></p>
+
+ <p>Printing methods in the <a href="">Logger</a> interface now
+ offers variants accepting <a
+ href="http://docs.oracle.com/javase/1.5.0/docs/guide/language/varargs.html">varargs</a>
+ instead of Object[]. Given that under the hood, the Java compiler
+ transforms varargs into an array, this change is totally 100%
+ no-ifs-or-buts backward compatible with all existing client
+ code. </p>
<p>The logger field (of type <code>java.util.logging.Logger</code>)
in <code>JDK14LoggerAdapter</code> is now marked as transient. This
-----------------------------------------------------------------------
Summary of changes:
integration/build.xml | 16 +-
slf4j-api/src/main/java/org/slf4j/Logger.java | 475 ++++++++++----------
.../java/org/slf4j/impl/StaticLoggerBinder.java | 2 +-
.../java/org/slf4j/impl/StaticLoggerBinder.java | 2 +-
.../java/org/slf4j/impl/StaticLoggerBinder.java | 2 +-
.../src/test/java/org/slf4j/InvocationTest.java | 2 +-
.../java/org/slf4j/impl/StaticLoggerBinder.java | 2 +-
.../java/org/slf4j/impl/StaticLoggerBinder.java | 2 +-
.../java/org/slf4j/impl/StaticLoggerBinder.java | 2 +-
slf4j-site/src/site/pages/faq.html | 35 +-
slf4j-site/src/site/pages/manual.html | 13 +-
slf4j-site/src/site/pages/news.html | 12 +-
12 files changed, 300 insertions(+), 265 deletions(-)
hooks/post-receive
--
SLF4J: Simple Logging Facade for Java
1
0

[qos-ch/slf4j] 255def: avoid version mismatch warning (when run with slf4...
by Ceki Gulcu 06 Sep '12
by Ceki Gulcu 06 Sep '12
06 Sep '12
Branch: refs/heads/master
Home: https://github.com/qos-ch/slf4j
Commit: 255def2278b87df16f24ad119a865b0ce5cb71d1
https://github.com/qos-ch/slf4j/commit/255def2278b87df16f24ad119a865b0ce5cb…
Author: Ceki Gulcu <ceki(a)qos.ch>
Date: 2012-09-06 (Thu, 06 Sep 2012)
Changed paths:
M integration/build.xml
M slf4j-api/src/main/java/org/slf4j/Logger.java
M slf4j-api/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
M slf4j-jcl/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
M slf4j-jdk14/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
M slf4j-jdk14/src/test/java/org/slf4j/InvocationTest.java
M slf4j-log4j12/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
M slf4j-nop/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
M slf4j-simple/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
M slf4j-site/src/site/pages/faq.html
M slf4j-site/src/site/pages/manual.html
M slf4j-site/src/site/pages/news.html
Log Message:
-----------
avoid version mismatch warning (when run with slf4j-api-1.6.jar) by setting REQUESTED_VERSION to 1.6.99 instead of 1.7
1
0
Branch: refs/heads/master
Home: https://github.com/qos-ch/slf4j
Commit: 86eaa9cf19193c9e8c471283b23149aa87a88573
https://github.com/qos-ch/slf4j/commit/86eaa9cf19193c9e8c471283b23149aa87a8…
Author: Ceki Gulcu <ceki(a)qos.ch>
Date: 2012-09-06 (Thu, 06 Sep 2012)
Changed paths:
M integration/pom.xml
M jcl-over-slf4j/pom.xml
M jul-to-slf4j/pom.xml
M log4j-over-slf4j/pom.xml
M pom.xml
M slf4j-api/pom.xml
M slf4j-api/src/main/java/org/slf4j/Logger.java
M slf4j-api/src/main/java/org/slf4j/LoggerFactory.java
M slf4j-api/src/main/java/org/slf4j/helpers/MarkerIgnoringBase.java
M slf4j-api/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
M slf4j-ext/pom.xml
M slf4j-jcl/pom.xml
M slf4j-jcl/src/main/java/org/slf4j/impl/JCLLoggerAdapter.java
M slf4j-jcl/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
M slf4j-jdk14/pom.xml
M slf4j-jdk14/src/main/java/org/slf4j/impl/JDK14LoggerAdapter.java
M slf4j-jdk14/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
M slf4j-log4j12/pom.xml
M slf4j-log4j12/src/main/java/org/slf4j/impl/Log4jLoggerAdapter.java
M slf4j-log4j12/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
M slf4j-migrator/pom.xml
M slf4j-nop/pom.xml
M slf4j-nop/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
R slf4j-osgi-integration-test/pom.xml
R slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/IntegrationTestConstants.java
R slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/jdk/test/JdkBundleTest.java
R slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/log4j/test/Log4JBundleTest.java
R slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/logservice/test/LogServiceBundleTest.java
R slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/nop/test/NopBundleTest.java
R slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/simple/test/SimpleBundleTest.java
R slf4j-osgi-integration-test/src/test/resources/log4j.properties
R slf4j-osgi-integration-test/src/test/resources/org/slf4j/osgi/integration/jdk/test/MANIFEST.MF
R slf4j-osgi-integration-test/src/test/resources/org/slf4j/osgi/integration/log4j/test/MANIFEST.MF
R slf4j-osgi-integration-test/src/test/resources/org/slf4j/osgi/integration/logservice/test/MANIFEST.MF
R slf4j-osgi-integration-test/src/test/resources/org/slf4j/osgi/integration/nop/test/MANIFEST.MF
R slf4j-osgi-integration-test/src/test/resources/org/slf4j/osgi/integration/simple/test/MANIFEST.MF
R slf4j-osgi-test-bundle/pom.xml
R slf4j-osgi-test-bundle/src/main/java/org/slf4j/osgi/test/Activator.java
R slf4j-osgi-test-bundle/src/main/java/org/slf4j/osgi/test/CommonsLoggingTester.java
R slf4j-osgi-test-bundle/src/main/java/org/slf4j/osgi/test/ProbeImpl.java
R slf4j-osgi-test-bundle/src/main/java/org/slf4j/osgi/test/service/Probe.java
R slf4j-scala-api/pom.xml
R slf4j-scala-api/src/main/scala/Logging.scala
R slf4j-scala-api/src/main/scala/logger.scala
R slf4j-scala-api/src/test/scala/LoggerSpec.scala
R slf4j-scala-api/src/test/scala/LoggingSpec.scala
M slf4j-simple/pom.xml
M slf4j-simple/src/main/java/org/slf4j/impl/SimpleLogger.java
M slf4j-simple/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
M slf4j-site/pom.xml
R slf4j.composite
Log Message:
-----------
adding vargs support to Logger interface
2
1

06 Sep '12
http://bugzilla.slf4j.org/show_bug.cgi?id=270
Summary: Characters unmappable to UTF-8 in sources
Product: SLF4J
Version: 1.6.x
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P1
Component: Core API
AssignedTo: slf4j-dev(a)qos.ch
ReportedBy: zizka(a)seznam.cz
When creating aggregated javadoc of an app depending on SLF4J, I hit this
problem:
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-javadoc-plugin:2.8.1:aggregate-jar
(javadocs-dist) on project jboss-as-build: MavenReportException: Error while
creating archive:
[ERROR] Exit code: 1 -
/home/ondra/work/AS7/ozizka-git/build/target/distro-javadoc-sources/slf4j-api-1.6.1-sources/org/slf4j/helpers/MessageFormatter.java:32:
error: unmappable character for encoding UTF-8
[ERROR] // J�rn Huxhorn: pointed out double[] omission, suggested deep array
copy
[ERROR] ^
Could someone please fix that character to something from UTF-8? Thanks.
--
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
1
2

[GIT] SLF4J: Simple Logging Facade for Java branch master updated. v_1.6.6-16-g86eaa9c
by git-noreply@pixie.qos.ch 06 Sep '12
by git-noreply@pixie.qos.ch 06 Sep '12
06 Sep '12
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "SLF4J: Simple Logging Facade for Java".
The branch, master has been updated
via 86eaa9cf19193c9e8c471283b23149aa87a88573 (commit)
from 370eca42fbaa403cabdd19353c4b05f756cf5677 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.qos.ch/gitweb/?p=slf4j.git;a=commit;h=86eaa9cf19193c9e8c471283b2…
http://github.com/ceki/slf4j/commit/86eaa9cf19193c9e8c471283b23149aa87a88573
commit 86eaa9cf19193c9e8c471283b23149aa87a88573
Author: Ceki Gulcu <ceki(a)qos.ch>
Date: Thu Sep 6 15:40:33 2012 +0200
adding vargs support to Logger interface
diff --git a/integration/pom.xml b/integration/pom.xml
index 14568d8..3d67ab1 100644
--- a/integration/pom.xml
+++ b/integration/pom.xml
@@ -1,14 +1,14 @@
-<project
- xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+<project
+ xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.6.7-SNAPSHOT</version>
+ <version>1.7.0-SNAPSHOT</version>
</parent>
-
+
<modelVersion>4.0.0</modelVersion>
<groupId>org.slf4j</groupId>
@@ -35,7 +35,7 @@
<dependency>
<groupId>ant</groupId>
<artifactId>ant-junit</artifactId>
- <version>1.6.5</version>
+ <version>1.6.5</version>
</dependency>
@@ -61,7 +61,7 @@
<dependency>
<groupId>ant</groupId>
<artifactId>ant-junit</artifactId>
- <version>1.6.5</version>
+ <version>1.6.5</version>
</dependency>
</dependencies>
<executions>
@@ -69,7 +69,7 @@
<id>ant-test</id>
<phase>package</phase>
<configuration>
- <tasks>
+ <tasks>
<property name="currentVersion" value="${project.version}" />
<property name="compile_classpath" refid="maven.compile.classpath"/>
<property name="runtime_classpath" refid="maven.runtime.classpath"/>
@@ -86,7 +86,7 @@
<id>ant-osgi-test</id>
<phase>package</phase>
<configuration>
- <tasks>
+ <tasks>
<property name="currentVersion" value="${project.version}" />
<property name="test_classpath" refid="maven.test.classpath"/>
<property name="basedir" value="${basedir}"/>
diff --git a/jcl-over-slf4j/pom.xml b/jcl-over-slf4j/pom.xml
index 52ee4e4..e7ff512 100644
--- a/jcl-over-slf4j/pom.xml
+++ b/jcl-over-slf4j/pom.xml
@@ -4,7 +4,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.6.7-SNAPSHOT</version>
+ <version>1.7.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
@@ -59,24 +59,4 @@
</plugins>
</build>
- <!-- Check whether we comply with the interfaces of JCL 1.1.1
- <reporting>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>clirr-maven-plugin</artifactId>
- <configuration>
- <comparisonArtifacts>
- <comparisonArtifact>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- <version>1.1.1</version>
- </comparisonArtifact>
- </comparisonArtifacts>
- </configuration>
- </plugin>
- </plugins>
- </reporting>
- -->
-
</project>
\ No newline at end of file
diff --git a/jul-to-slf4j/pom.xml b/jul-to-slf4j/pom.xml
index e3b2a6c..b022a76 100644
--- a/jul-to-slf4j/pom.xml
+++ b/jul-to-slf4j/pom.xml
@@ -6,7 +6,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.6.7-SNAPSHOT</version>
+ <version>1.7.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/log4j-over-slf4j/pom.xml b/log4j-over-slf4j/pom.xml
index 7190825..c9fbe37 100644
--- a/log4j-over-slf4j/pom.xml
+++ b/log4j-over-slf4j/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.6.7-SNAPSHOT</version>
+ <version>1.7.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/pom.xml b/pom.xml
index bb7470e..b8ec0ec 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,7 +7,7 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.6.7-SNAPSHOT</version>
+ <version>1.7.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>SLF4J</name>
@@ -34,11 +34,10 @@
</scm>
<properties>
- <slf4j.api.minimum.compatible.version>1.6.0
- </slf4j.api.minimum.compatible.version>
+ <slf4j.api.minimum.compatible.version>1.6.0</slf4j.api.minimum.compatible.version>
<cal10n.version>0.7.4</cal10n.version>
<log4j.version>1.2.17</log4j.version>
- <logback.version>1.0.4</logback.version>
+ <logback.version>1.0.7</logback.version>
</properties>
<developers>
@@ -129,8 +128,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
- <source>1.3</source>
- <target>1.3</target>
+ <source>1.5</source>
+ <target>1.5</target>
</configuration>
</plugin>
diff --git a/slf4j-api/pom.xml b/slf4j-api/pom.xml
index c39dfdc..99b76bd 100644
--- a/slf4j-api/pom.xml
+++ b/slf4j-api/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.6.7-SNAPSHOT</version>
+ <version>1.7.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/slf4j-api/src/main/java/org/slf4j/Logger.java b/slf4j-api/src/main/java/org/slf4j/Logger.java
index 12844f6..83e60e8 100644
--- a/slf4j-api/src/main/java/org/slf4j/Logger.java
+++ b/slf4j-api/src/main/java/org/slf4j/Logger.java
@@ -128,11 +128,11 @@ public interface Logger {
* is disabled for the TRACE level. </p>
*
* @param format the format string
- * @param argArray an array of arguments
+ * @param arguments a list of 3 or more arguments
*
* @since 1.4
*/
- public void trace(String format, Object[] argArray);
+ public void trace(String format, Object... arguments);
/**
* Log an exception (throwable) at the TRACE level with an
@@ -194,7 +194,7 @@ public interface Logger {
public void trace(Marker marker, String format, Object arg1, Object arg2);
/**
- * This method is similar to {@link #trace(String, Object[])}
+ * This method is similar to {@link #trace(String, Object...)}
* method except that the marker data is also taken into
* consideration.
*
@@ -204,7 +204,7 @@ public interface Logger {
*
* @since 1.4
*/
- public void trace(Marker marker, String format, Object[] argArray);
+ public void trace(Marker marker, String format, Object... argArray);
/**
@@ -272,9 +272,9 @@ public interface Logger {
* is disabled for the DEBUG level. </p>
*
* @param format the format string
- * @param argArray an array of arguments
+ * @param arguments a list of 3 or more arguments
*/
- public void debug(String format, Object[] argArray);
+ public void debug(String format, Object... arguments);
/**
* Log an exception (throwable) at the DEBUG level with an
@@ -326,15 +326,15 @@ public interface Logger {
public void debug(Marker marker, String format, Object arg1, Object arg2);
/**
- * This method is similar to {@link #debug(String, Object[])}
+ * This method is similar to {@link #debug(String, Object...)}
* method except that the marker data is also taken into
* consideration.
*
* @param marker the marker data specific to this log statement
* @param format the format string
- * @param argArray an array of arguments
+ * @param arguments a list of 3 or more arguments
*/
- public void debug(Marker marker, String format, Object[] argArray);
+ public void debug(Marker marker, String format, Object... arguments);
/**
@@ -398,9 +398,9 @@ public interface Logger {
* is disabled for the INFO level. </p>
*
* @param format the format string
- * @param argArray an array of arguments
+ * @param arguments a list of 3 or more arguments
*/
- public void info(String format, Object[] argArray);
+ public void info(String format, Object... arguments);
/**
* Log an exception (throwable) at the INFO level with an
@@ -451,15 +451,15 @@ public interface Logger {
/**
- * This method is similar to {@link #info(String, Object[])}
+ * This method is similar to {@link #info(String, Object...)}
* method except that the marker data is also taken into
* consideration.
*
* @param marker the marker data specific to this log statement
* @param format the format string
- * @param argArray an array of arguments
+ * @param arguments a list of 3 or more arguments
*/
- public void info(Marker marker, String format, Object[] argArray);
+ public void info(Marker marker, String format, Object... arguments);
/**
@@ -508,9 +508,9 @@ public interface Logger {
* is disabled for the WARN level. </p>
*
* @param format the format string
- * @param argArray an array of arguments
+ * @param arguments a list of 3 or more arguments
*/
- public void warn(String format, Object[] argArray);
+ public void warn(String format, Object... arguments);
/**
* Log a message at the WARN level according to the specified format
@@ -574,15 +574,15 @@ public interface Logger {
public void warn(Marker marker, String format, Object arg1, Object arg2);
/**
- * This method is similar to {@link #warn(String, Object[])}
+ * This method is similar to {@link #warn(String, Object...)}
* method except that the marker data is also taken into
* consideration.
*
* @param marker the marker data specific to this log statement
* @param format the format string
- * @param argArray an array of arguments
+ * @param arguments a list of 3 or more arguments
*/
- public void warn(Marker marker, String format, Object[] argArray);
+ public void warn(Marker marker, String format, Object... arguments);
/**
@@ -643,9 +643,9 @@ public interface Logger {
* is disabled for the ERROR level. </p>
*
* @param format the format string
- * @param argArray an array of arguments
+ * @param arguments a list of 3 or more arguments
*/
- public void error(String format, Object[] argArray);
+ public void error(String format, Object... arguments);
/**
* Log an exception (throwable) at the ERROR level with an
@@ -696,15 +696,15 @@ public interface Logger {
public void error(Marker marker, String format, Object arg1, Object arg2);
/**
- * This method is similar to {@link #error(String, Object[])}
+ * This method is similar to {@link #error(String, Object...)}
* method except that the marker data is also taken into
* consideration.
*
* @param marker the marker data specific to this log statement
* @param format the format string
- * @param argArray an array of arguments
+ * @param arguments a list of 3 or more arguments
*/
- public void error(Marker marker, String format, Object[] argArray);
+ public void error(Marker marker, String format, Object... arguments);
/**
diff --git a/slf4j-api/src/main/java/org/slf4j/LoggerFactory.java b/slf4j-api/src/main/java/org/slf4j/LoggerFactory.java
index e436c7b..3994188 100644
--- a/slf4j-api/src/main/java/org/slf4j/LoggerFactory.java
+++ b/slf4j-api/src/main/java/org/slf4j/LoggerFactory.java
@@ -81,7 +81,7 @@ public final class LoggerFactory {
* <p/>
* It is assumed that all versions in the 1.6 are mutually compatible.
*/
- static private final String[] API_COMPATIBILITY_LIST = new String[]{"1.6"};
+ static private final String[] API_COMPATIBILITY_LIST = new String[]{"1.6", "1.7"};
// private constructor prevents instantiation
private LoggerFactory() {
diff --git a/slf4j-api/src/main/java/org/slf4j/helpers/MarkerIgnoringBase.java b/slf4j-api/src/main/java/org/slf4j/helpers/MarkerIgnoringBase.java
index 2c5cd4a..c128df5 100644
--- a/slf4j-api/src/main/java/org/slf4j/helpers/MarkerIgnoringBase.java
+++ b/slf4j-api/src/main/java/org/slf4j/helpers/MarkerIgnoringBase.java
@@ -56,8 +56,8 @@ public abstract class MarkerIgnoringBase extends NamedLoggerBase implements Logg
trace(format, arg1, arg2);
}
- public void trace(Marker marker, String format, Object[] argArray) {
- trace(format, argArray);
+ public void trace(Marker marker, String format, Object... arguments) {
+ trace(format, arguments);
}
public void trace(Marker marker, String msg, Throwable t) {
@@ -80,8 +80,8 @@ public abstract class MarkerIgnoringBase extends NamedLoggerBase implements Logg
debug(format, arg1, arg2);
}
- public void debug(Marker marker, String format, Object[] argArray) {
- debug(format, argArray);
+ public void debug(Marker marker, String format, Object... arguments) {
+ debug(format, arguments);
}
public void debug(Marker marker, String msg, Throwable t) {
@@ -104,8 +104,8 @@ public abstract class MarkerIgnoringBase extends NamedLoggerBase implements Logg
info(format, arg1, arg2);
}
- public void info(Marker marker, String format, Object[] argArray) {
- info(format, argArray);
+ public void info(Marker marker, String format, Object... arguments) {
+ info(format, arguments);
}
public void info(Marker marker, String msg, Throwable t) {
@@ -128,8 +128,8 @@ public abstract class MarkerIgnoringBase extends NamedLoggerBase implements Logg
warn(format, arg1, arg2);
}
- public void warn(Marker marker, String format, Object[] argArray) {
- warn(format, argArray);
+ public void warn(Marker marker, String format, Object... arguments) {
+ warn(format, arguments);
}
public void warn(Marker marker, String msg, Throwable t) {
@@ -153,8 +153,8 @@ public abstract class MarkerIgnoringBase extends NamedLoggerBase implements Logg
error(format, arg1, arg2);
}
- public void error(Marker marker, String format, Object[] argArray) {
- error(format, argArray);
+ public void error(Marker marker, String format, Object... arguments) {
+ error(format, arguments);
}
public void error(Marker marker, String msg, Throwable t) {
diff --git a/slf4j-api/src/main/java/org/slf4j/impl/StaticLoggerBinder.java b/slf4j-api/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
index 151f24e..606a406 100644
--- a/slf4j-api/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
+++ b/slf4j-api/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
@@ -57,7 +57,7 @@ public class StaticLoggerBinder {
* The value of this field is usually modified with each release.
*/
// to avoid constant folding by the compiler, this field must *not* be final
- public static String REQUESTED_API_VERSION = "1.6"; // !final
+ public static String REQUESTED_API_VERSION = "1.7"; // !final
private StaticLoggerBinder() {
throw new UnsupportedOperationException("This code should have never made it into slf4j-api.jar");
diff --git a/slf4j-ext/pom.xml b/slf4j-ext/pom.xml
index 7bf0811..cdeded4 100644
--- a/slf4j-ext/pom.xml
+++ b/slf4j-ext/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.6.7-SNAPSHOT</version>
+ <version>1.7.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/slf4j-jcl/pom.xml b/slf4j-jcl/pom.xml
index c30521c..efa4df8 100644
--- a/slf4j-jcl/pom.xml
+++ b/slf4j-jcl/pom.xml
@@ -3,7 +3,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.6.7-SNAPSHOT</version>
+ <version>1.7.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/slf4j-jcl/src/main/java/org/slf4j/impl/JCLLoggerAdapter.java b/slf4j-jcl/src/main/java/org/slf4j/impl/JCLLoggerAdapter.java
index 611f004..262151c 100644
--- a/slf4j-jcl/src/main/java/org/slf4j/impl/JCLLoggerAdapter.java
+++ b/slf4j-jcl/src/main/java/org/slf4j/impl/JCLLoggerAdapter.java
@@ -125,11 +125,11 @@ public final class JCLLoggerAdapter extends MarkerIgnoringBase {
* </p>
*
* @param format the format string
- * @param argArray an array of arguments
+ * @param arguments a list of 3 or more arguments
*/
- public void trace(String format, Object[] argArray) {
+ public void trace(String format, Object... arguments) {
if (log.isDebugEnabled()) {
- FormattingTuple ft = MessageFormatter.arrayFormat(format, argArray);
+ FormattingTuple ft = MessageFormatter.arrayFormat(format, arguments);
log.trace(ft.getMessage(), ft.getThrowable());
}
}
@@ -223,11 +223,11 @@ public final class JCLLoggerAdapter extends MarkerIgnoringBase {
* </p>
*
* @param format the format string
- * @param argArray an array of arguments
+ * @param arguments a list of 3 or more arguments
*/
- public void debug(String format, Object[] argArray) {
+ public void debug(String format, Object... arguments) {
if (log.isDebugEnabled()) {
- FormattingTuple ft = MessageFormatter.arrayFormat(format, argArray);
+ FormattingTuple ft = MessageFormatter.arrayFormat(format, arguments);
log.debug(ft.getMessage(), ft.getThrowable());
}
}
@@ -318,11 +318,11 @@ public final class JCLLoggerAdapter extends MarkerIgnoringBase {
* </p>
*
* @param format the format string
- * @param argArray an array of arguments
+ * @param arguments a list of 3 or more arguments
*/
- public void info(String format, Object[] argArray) {
+ public void info(String format, Object... arguments) {
if (log.isInfoEnabled()) {
- FormattingTuple ft = MessageFormatter.arrayFormat(format, argArray);
+ FormattingTuple ft = MessageFormatter.arrayFormat(format, arguments);
log.info(ft.getMessage(), ft.getThrowable());
}
}
@@ -413,11 +413,11 @@ public final class JCLLoggerAdapter extends MarkerIgnoringBase {
* </p>
*
* @param format the format string
- * @param argArray an array of arguments
+ * @param arguments a list of 3 or more arguments
*/
- public void warn(String format, Object[] argArray) {
+ public void warn(String format, Object... arguments) {
if (log.isWarnEnabled()) {
- FormattingTuple ft = MessageFormatter.arrayFormat(format, argArray);
+ FormattingTuple ft = MessageFormatter.arrayFormat(format, arguments);
log.warn(ft.getMessage(), ft.getThrowable());
}
}
@@ -510,11 +510,11 @@ public final class JCLLoggerAdapter extends MarkerIgnoringBase {
* </p>
*
* @param format the format string
- * @param argArray an array of arguments
+ * @param arguments a list of 3 or more arguments
*/
- public void error(String format, Object[] argArray) {
+ public void error(String format, Object... arguments) {
if (log.isErrorEnabled()) {
- FormattingTuple ft = MessageFormatter.arrayFormat(format, argArray);
+ FormattingTuple ft = MessageFormatter.arrayFormat(format, arguments);
log.error(ft.getMessage(), ft.getThrowable());
}
}
diff --git a/slf4j-jcl/src/main/java/org/slf4j/impl/StaticLoggerBinder.java b/slf4j-jcl/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
index 1a9c7e5..fca85e5 100644
--- a/slf4j-jcl/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
+++ b/slf4j-jcl/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
@@ -56,7 +56,7 @@ public class StaticLoggerBinder implements LoggerFactoryBinder {
*/
//to avoid constant folding by the compiler, this field must *not* be final
- public static String REQUESTED_API_VERSION = "1.6";
+ public static String REQUESTED_API_VERSION = "1.7";
// Binding specific code:
private static final String loggerFactoryClassStr = JCLLoggerFactory.class
diff --git a/slf4j-jdk14/pom.xml b/slf4j-jdk14/pom.xml
index f17a31d..b63c8a1 100644
--- a/slf4j-jdk14/pom.xml
+++ b/slf4j-jdk14/pom.xml
@@ -6,7 +6,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.6.7-SNAPSHOT</version>
+ <version>1.7.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
@@ -37,16 +37,6 @@
<build>
<plugins>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.4</source>
- <target>1.4</target>
- </configuration>
- </plugin>
-
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
diff --git a/slf4j-jdk14/src/main/java/org/slf4j/impl/JDK14LoggerAdapter.java b/slf4j-jdk14/src/main/java/org/slf4j/impl/JDK14LoggerAdapter.java
index 3c20c14..7b5ee09 100644
--- a/slf4j-jdk14/src/main/java/org/slf4j/impl/JDK14LoggerAdapter.java
+++ b/slf4j-jdk14/src/main/java/org/slf4j/impl/JDK14LoggerAdapter.java
@@ -136,7 +136,7 @@ public final class JDK14LoggerAdapter extends MarkerIgnoringBase implements
* @param argArray
* an array of arguments
*/
- public void trace(String format, Object[] argArray) {
+ public void trace(String format, Object... argArray) {
if (logger.isLoggable(Level.FINEST)) {
FormattingTuple ft = MessageFormatter.arrayFormat(format, argArray);
log(SELF, Level.FINEST, ft.getMessage(), ft.getThrowable());
@@ -235,7 +235,7 @@ public final class JDK14LoggerAdapter extends MarkerIgnoringBase implements
* @param argArray
* an array of arguments
*/
- public void debug(String format, Object[] argArray) {
+ public void debug(String format, Object... argArray) {
if (logger.isLoggable(Level.FINE)) {
FormattingTuple ft = MessageFormatter.arrayFormat(format, argArray);
log(SELF, Level.FINE, ft.getMessage(), ft.getThrowable());
@@ -334,7 +334,7 @@ public final class JDK14LoggerAdapter extends MarkerIgnoringBase implements
* @param argArray
* an array of arguments
*/
- public void info(String format, Object[] argArray) {
+ public void info(String format, Object... argArray) {
if (logger.isLoggable(Level.INFO)) {
FormattingTuple ft = MessageFormatter.arrayFormat(format, argArray);
log(SELF, Level.INFO, ft.getMessage(), ft.getThrowable());
@@ -436,7 +436,7 @@ public final class JDK14LoggerAdapter extends MarkerIgnoringBase implements
* @param argArray
* an array of arguments
*/
- public void warn(String format, Object[] argArray) {
+ public void warn(String format, Object... argArray) {
if (logger.isLoggable(Level.WARNING)) {
FormattingTuple ft = MessageFormatter.arrayFormat(format, argArray);
log(SELF, Level.WARNING, ft.getMessage(), ft.getThrowable());
@@ -534,12 +534,12 @@ public final class JDK14LoggerAdapter extends MarkerIgnoringBase implements
*
* @param format
* the format string
- * @param argArray
+ * @param arguments
* an array of arguments
*/
- public void error(String format, Object[] argArray) {
+ public void error(String format, Object... arguments) {
if (logger.isLoggable(Level.SEVERE)) {
- FormattingTuple ft = MessageFormatter.arrayFormat(format, argArray);
+ FormattingTuple ft = MessageFormatter.arrayFormat(format, arguments);
log(SELF, Level.SEVERE, ft.getMessage(), ft.getThrowable());
}
}
diff --git a/slf4j-jdk14/src/main/java/org/slf4j/impl/StaticLoggerBinder.java b/slf4j-jdk14/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
index 2ea3c29..b90e885 100644
--- a/slf4j-jdk14/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
+++ b/slf4j-jdk14/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
@@ -57,7 +57,7 @@ public class StaticLoggerBinder implements LoggerFactoryBinder {
* The value of this field is usually modified with each release.
*/
// to avoid constant folding by the compiler, this field must *not* be final
- public static String REQUESTED_API_VERSION = "1.6"; // !final
+ public static String REQUESTED_API_VERSION = "1.7"; // !final
private static final String loggerFactoryClassStr = org.slf4j.impl.JDK14LoggerFactory.class.getName();
diff --git a/slf4j-log4j12/pom.xml b/slf4j-log4j12/pom.xml
index 0d717f0..76a11e4 100644
--- a/slf4j-log4j12/pom.xml
+++ b/slf4j-log4j12/pom.xml
@@ -6,7 +6,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.6.7-SNAPSHOT</version>
+ <version>1.7.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/slf4j-log4j12/src/main/java/org/slf4j/impl/Log4jLoggerAdapter.java b/slf4j-log4j12/src/main/java/org/slf4j/impl/Log4jLoggerAdapter.java
index 136ab22..6a5c97a 100644
--- a/slf4j-log4j12/src/main/java/org/slf4j/impl/Log4jLoggerAdapter.java
+++ b/slf4j-log4j12/src/main/java/org/slf4j/impl/Log4jLoggerAdapter.java
@@ -167,12 +167,12 @@ public final class Log4jLoggerAdapter extends MarkerIgnoringBase implements
*
* @param format
* the format string
- * @param argArray
+ * @param arguments
* an array of arguments
*/
- public void trace(String format, Object[] argArray) {
+ public void trace(String format, Object... arguments) {
if (isTraceEnabled()) {
- FormattingTuple ft = MessageFormatter.arrayFormat(format, argArray);
+ FormattingTuple ft = MessageFormatter.arrayFormat(format, arguments);
logger.log(FQCN, traceCapable ? Level.TRACE : Level.DEBUG, ft
.getMessage(), ft.getThrowable());
}
@@ -264,12 +264,11 @@ public final class Log4jLoggerAdapter extends MarkerIgnoringBase implements
*
* @param format
* the format string
- * @param argArray
- * an array of arguments
+ * @param arguments an array of arguments
*/
- public void debug(String format, Object[] argArray) {
+ public void debug(String format, Object... arguments) {
if (logger.isDebugEnabled()) {
- FormattingTuple ft = MessageFormatter.arrayFormat(format, argArray);
+ FormattingTuple ft = MessageFormatter.arrayFormat(format, arguments);
logger.log(FQCN, Level.DEBUG, ft.getMessage(), ft.getThrowable());
}
}
@@ -362,7 +361,7 @@ public final class Log4jLoggerAdapter extends MarkerIgnoringBase implements
* @param argArray
* an array of arguments
*/
- public void info(String format, Object[] argArray) {
+ public void info(String format, Object... argArray) {
if (logger.isInfoEnabled()) {
FormattingTuple ft = MessageFormatter.arrayFormat(format, argArray);
logger.log(FQCN, Level.INFO, ft.getMessage(), ft.getThrowable());
@@ -459,7 +458,7 @@ public final class Log4jLoggerAdapter extends MarkerIgnoringBase implements
* @param argArray
* an array of arguments
*/
- public void warn(String format, Object[] argArray) {
+ public void warn(String format, Object... argArray) {
if (logger.isEnabledFor(Level.WARN)) {
FormattingTuple ft = MessageFormatter.arrayFormat(format, argArray);
logger.log(FQCN, Level.WARN, ft.getMessage(), ft.getThrowable());
@@ -556,7 +555,7 @@ public final class Log4jLoggerAdapter extends MarkerIgnoringBase implements
* @param argArray
* an array of arguments
*/
- public void error(String format, Object[] argArray) {
+ public void error(String format, Object... argArray) {
if (logger.isEnabledFor(Level.ERROR)) {
FormattingTuple ft = MessageFormatter.arrayFormat(format, argArray);
logger.log(FQCN, Level.ERROR, ft.getMessage(), ft.getThrowable());
diff --git a/slf4j-log4j12/src/main/java/org/slf4j/impl/StaticLoggerBinder.java b/slf4j-log4j12/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
index 0221bc4..7be00e7 100644
--- a/slf4j-log4j12/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
+++ b/slf4j-log4j12/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
@@ -58,7 +58,7 @@ public class StaticLoggerBinder implements LoggerFactoryBinder {
* against. The value of this field is usually modified with each release.
*/
// to avoid constant folding by the compiler, this field must *not* be final
- public static String REQUESTED_API_VERSION = "1.6"; // !final
+ public static String REQUESTED_API_VERSION = "1.7"; // !final
private static final String loggerFactoryClassStr = Log4jLoggerFactory.class
.getName();
diff --git a/slf4j-migrator/pom.xml b/slf4j-migrator/pom.xml
index 622fb44..966968c 100644
--- a/slf4j-migrator/pom.xml
+++ b/slf4j-migrator/pom.xml
@@ -7,7 +7,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.6.7-SNAPSHOT</version>
+ <version>1.7.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/slf4j-nop/pom.xml b/slf4j-nop/pom.xml
index e28371d..105eee5 100644
--- a/slf4j-nop/pom.xml
+++ b/slf4j-nop/pom.xml
@@ -6,7 +6,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.6.7-SNAPSHOT</version>
+ <version>1.7.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/slf4j-nop/src/main/java/org/slf4j/impl/StaticLoggerBinder.java b/slf4j-nop/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
index 3faefbb..ab7c824 100644
--- a/slf4j-nop/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
+++ b/slf4j-nop/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
@@ -58,7 +58,7 @@ public class StaticLoggerBinder implements LoggerFactoryBinder {
* The value of this field is usually modified with each release.
*/
// to avoid constant folding by the compiler, this field must *not* be final
- public static String REQUESTED_API_VERSION = "1.6"; // !final
+ public static String REQUESTED_API_VERSION = "1.7"; // !final
private static final String loggerFactoryClassStr = NOPLoggerFactory.class.getName();
diff --git a/slf4j-osgi-integration-test/pom.xml b/slf4j-osgi-integration-test/pom.xml
deleted file mode 100644
index f6c201f..0000000
--- a/slf4j-osgi-integration-test/pom.xml
+++ /dev/null
@@ -1,241 +0,0 @@
-<project
- xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
- <parent>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-parent</artifactId>
- <version>1.6.7-SNAPSHOT</version>
- </parent>
-
- <modelVersion>4.0.0</modelVersion>
-
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-osgi-integration-test</artifactId>
- <packaging>jar</packaging>
- <name>SLF4J OSGi Integration Test</name>
-
- <url>http://www.slf4j.org</url>
- <description>OSGi integration tests</description>
-
- <!-- These dependencies are deceptive they are only for the springframework testing env.
-bundles being tested are specified in the -->
-
- <dependencies>
- <dependency>
- <groupId>org.apache.felix</groupId>
- <artifactId>javax.servlet</artifactId>
- <version>0.8.0-SNAPSHOT</version>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.osgi</groupId>
- <artifactId>org.osgi.compendium</artifactId>
- <version>4.0</version>
- <scope>provided</scope>
- </dependency>
-
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-osgi-test-bundle</artifactId>
- <version>${parent.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.springframework.osgi</groupId>
- <artifactId>org.springframework.osgi.test</artifactId>
- <version>1.0-SNAPSHOT</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.springframework.osgi</groupId>
- <artifactId>spring-core</artifactId>
- <version>2.1-SNAPSHOT</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.springframework.osgi</groupId>
- <artifactId>spring-context</artifactId>
- <version>2.1-SNAPSHOT</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.springframework.osgi</groupId>
- <artifactId>spring-beans</artifactId>
- <version>2.1-SNAPSHOT</version>
- <scope>provided</scope>
- </dependency>
-
-
- <dependency>
- <groupId>org.springframework.osgi</groupId>
- <artifactId>spring-mock</artifactId>
- <version>2.1-SNAPSHOT</version>
- <type>jar</type>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.springframework.osgi</groupId>
- <artifactId>jcl104-over-slf4j.osgi</artifactId>
- <version>1.1.0</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j-full</artifactId>
- <version>1.1.0</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.springframework.osgi</groupId>
- <artifactId>log4j.osgi</artifactId>
- <version>1.2.13-SNAPSHOT</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.springframework.osgi</groupId>
- <artifactId>backport-util-concurrent</artifactId>
- <version>3.0-SNAPSHOT</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- <!-- run tests during the integration-test phase, not the normal test phase -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <skip>true</skip>
- <systemProperties>
- <property>
- <name>org.springframework.osgi.test.framework</name>
- <value>${osgi.test.platform}</value>
- </property>
- <property>
- <name>org.osgi.framework.system.packages</name>
- <value>${osgi.test.system.packages}</value>
- </property>
- <!--
- <property>
- <name>org.osgi.vendor.framework</name>
- <value>${org.osgi.vendor.framework}</value>
- </property>
- -->
- </systemProperties>
- </configuration>
- <executions>
- <execution>
- <id>default</id>
- <phase>test</phase>
- <goals></goals>
- </execution>
- <execution>
- <id>integration-test</id>
- <phase>integration-test</phase>
- <goals>
- <goal>test</goal>
- </goals>
- <configuration>
- <skip>false</skip>
- <forkMode>pertest</forkMode>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <profiles>
- <profile>
- <id>equinox</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <dependencies>
- <dependency>
- <groupId>org.eclipse.equinox</groupId>
- <artifactId>org.eclipse.osgi</artifactId>
- <version>3.2.0</version>
- <type>jar</type>
- <scope>provided</scope>
- </dependency>
- </dependencies>
- <properties>
- <osgi.test.system.packages>org.xml.sax, org.w3c.dom, javax.xml.parsers, javax.naming, javax.management
- </osgi.test.system.packages>
- <osgi.test.platform>equinox</osgi.test.platform>
- </properties>
- </profile>
- <profile>
- <id>knopflerfish</id>
- <dependencies>
- <dependency>
- <groupId>org.knopflerfish</groupId>
- <artifactId>framework</artifactId>
- <version>2.0.1</version>
- <type>jar</type>
- <scope>provided</scope>
- </dependency>
- </dependencies>
- <properties>
- <!-- knopflerfish testing requires that the system property
- org.osgi.framework.system.packages be set with a list
- system packages that are to be imported on the kf classpath.
- This property is a placeholder for the list. See the surefire
- plugin configuration systemProperties referenced above to see
- the mapping to this element. -->
- <osgi.test.system.packages>org.xml.sax, org.w3c.dom, javax.xml.parsers, javax.naming, javax.management
- </osgi.test.system.packages>
- <osgi.test.platform>knopflerfish</osgi.test.platform>
- </properties>
- </profile>
- <profile>
- <id>felix</id>
- <dependencies>
- <dependency>
- <groupId>org.apache.felix</groupId>
- <artifactId>org.apache.felix.framework</artifactId>
- <version>0.8.0-SNAPSHOT</version>
- <type>jar</type>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.felix</groupId>
- <artifactId>org.apache.felix.main</artifactId>
- <version>0.8.0-SNAPSHOT</version>
- <type>jar</type>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.felix</groupId>
- <artifactId>org.osgi.core</artifactId>
- <version>0.8.0-SNAPSHOT</version>
- <type>jar</type>
- <scope>runtime</scope>
- </dependency>
- </dependencies>
- <properties>
- <osgi.test.platform>felix</osgi.test.platform>
- <!-- <org.osgi.vendor.framework>org.apache.felix.framework</org.osgi.vendor.framework> -->
- </properties>
- </profile>
- </profiles>
-</project>
\ No newline at end of file
diff --git a/slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/IntegrationTestConstants.java b/slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/IntegrationTestConstants.java
deleted file mode 100644
index 072189e..0000000
--- a/slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/IntegrationTestConstants.java
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- * Copyright (c) 2004-2005 SLF4J.ORG
- *
- * 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, and/or sell copies of the Software, and to permit persons
- * to whom the Software is furnished to do so, provided that the above
- * copyright notice(s) and this permission notice appear in all copies of
- * the Software and that both the above copyright notice(s) and this
- * permission notice appear in supporting documentation.
- *
- * 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
- * OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
- * HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY
- * SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER
- * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
- * CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
- * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- * Except as contained in this notice, the name of a copyright holder
- * shall not be used in advertising or otherwise to promote the sale, use
- * or other dealings in this Software without prior written authorization
- * of the copyright holder.
- *
- */
-package org.slf4j.osgi.integration;
-
-public interface IntegrationTestConstants {
-
- /**
- * Versions of this release.
- */
- public static final String SLF4J_VERSION_UNDER_TEST = "1.3.1-SNAPSHOT";
-
- public static final String SLF4J_GROUP_ID = "org.slf4j";
-
- public static final String SPRINGFRAMEWORK_OSGI_GROUP_NAME = "org.springframework.osgi";
-
- public static final String API_BUNDLE_ARTIFACT_ID = "slf4j-api";
-
- public static final String JCL104_ADAPTER_BUNDLE_ARTIFACT_ID = "jcl104-over-slf4j";
-
- public static final String LOGSERVICE_ADAPTER_BUNDLE_ARTIFACT_ID = "osgi-over-slf4j";
-
- public static final String JDK14_BINDING_BUNDLE_ARTIFACT_ID = "slf4j-jdk14";
-
- public static final String SIMPLE_BINDING_BUNDLE_ARTIFACT_ID = "slf4j-simple";
-
- public static final String LOG4J12_BINDING_BUNDLE_ARTIFACT_ID = "slf4j-log4j12";
-
- public static final String NOP_BINDING_BUNDLE_ARTIFACT_ID = "slf4j-nop";
-
- public static final String TEST_BUNDLE_ARTIFACT_ID = "slf4j-osgi-test-bundle";
-
-
- public static final String TEST_BUNDLE_SYM_NAME = SLF4J_GROUP_ID+'.'+TEST_BUNDLE_ARTIFACT_ID;
-
- public static final String NOP_BINDING_BUNDLE_SYM_NAME = "slf4j.nop";
-
- public static final String LOG4J_BINDING_BUNDLE_SYM_NAME = "slf4j.log4j12";
-
- public static final String SIMPLE_BINDING_BUNDLE_SYM_NAME ="slf4j.simple";
-
- public static final String JDK_BINDING_BUNDLE_SYM_NAME = "slf4j.jdk14";
-
- public static final String JCL_ADAPTER_BUNDLE_SYM_NAME = "jcl104.over.slf4j";
-
- public static final String LOGSERVICE_ADAPTER_BUNDLE_SYM_NAME = SLF4J_GROUP_ID+'.'+LOGSERVICE_ADAPTER_BUNDLE_ARTIFACT_ID;
-
-
-
-}
diff --git a/slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/jdk/test/JdkBundleTest.java b/slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/jdk/test/JdkBundleTest.java
deleted file mode 100644
index f739150..0000000
--- a/slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/jdk/test/JdkBundleTest.java
+++ /dev/null
@@ -1,176 +0,0 @@
-/*
- * Copyright (c) 2004-2005 SLF4J.ORG
- *
- * 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, and/or sell copies of the Software, and to permit persons
- * to whom the Software is furnished to do so, provided that the above
- * copyright notice(s) and this permission notice appear in all copies of
- * the Software and that both the above copyright notice(s) and this
- * permission notice appear in supporting documentation.
- *
- * 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
- * OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
- * HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY
- * SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER
- * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
- * CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
- * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- * Except as contained in this notice, the name of a copyright holder
- * shall not be used in advertising or otherwise to promote the sale, use
- * or other dealings in this Software without prior written authorization
- * of the copyright holder.
- *
- */
-
-package org.slf4j.osgi.integration.jdk.test;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.osgi.framework.Bundle;
-import org.osgi.framework.BundleContext;
-import org.osgi.framework.Constants;
-import org.osgi.framework.ServiceReference;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.slf4j.osgi.integration.IntegrationTestConstants;
-import org.slf4j.osgi.test.service.Probe;
-import org.springframework.osgi.test.ConfigurableBundleCreatorTests;
-
-/**
- *
- * <code>JdkBundleTest</code> starts up an OSGi environment (equinox,
- * knopflerfish, or felix according to the profile selected) and installs the
- * slf4j.osgi.test.bundle, the slf4j.jdk bundle and the bundles they depend on.
- *
- * The test classes in this project will be turned into a virtual bundle which is
- * also installed and the tests are then run inside the OSGi runtime.
- *
- * The tests have access to a BundleContext, which we use to test that all bundles have
- * been started.
- *
- *
- * @author John Conlon
- */
-public class JdkBundleTest extends ConfigurableBundleCreatorTests implements IntegrationTestConstants{
-
-
-
-
-
- /**
- * The manifest to use for the "virtual bundle" created out of the test
- * classes and resources in this project
- *
- * This is actually the boilerplate manifest with one additional
- * import-package added. We should provide a simpler customization point for
- * such use cases that doesn't require duplication of the entire manifest...
- */
- protected String getManifestLocation() {
- return "classpath:org/slf4j/osgi/integration/jdk/test/MANIFEST.MF";
- }
-
- /**
- * The location of the packaged OSGi bundles to be installed for this test.
- * Values are Spring resource paths. The bundles we want to use are part of
- * the same multi-project maven build as this project is. Hence we use the
- * localMavenArtifact helper method to find the bundles produced by the
- * package phase of the maven build (these tests will run after the
- * packaging phase, in the integration-test phase).
- *
- * JUnit, commons-logging, spring-core and the spring OSGi test bundle are
- * automatically included so they do not need to be specified here.
- *
- * Our test bundles are using package import and export versions to keep
- * these other logging bundles from getting mixed up with our test bundles.
- */
- protected String[] getBundleLocations() {
- return new String[] {
- localMavenArtifact(SPRINGFRAMEWORK_OSGI_GROUP_NAME,
- "aopalliance.osgi", "1.0-SNAPSHOT"),
- localMavenArtifact(SPRINGFRAMEWORK_OSGI_GROUP_NAME,
- "spring-context", "2.1-SNAPSHOT"),
- localMavenArtifact(SPRINGFRAMEWORK_OSGI_GROUP_NAME, "spring-beans",
- "2.1-SNAPSHOT"),
- localMavenArtifact(SPRINGFRAMEWORK_OSGI_GROUP_NAME,
- "spring-osgi-core", "1.0-SNAPSHOT"),
- localMavenArtifact(SPRINGFRAMEWORK_OSGI_GROUP_NAME, "spring-aop",
- "2.1-SNAPSHOT"),
- localMavenArtifact(SLF4J_GROUP_ID, API_BUNDLE_ARTIFACT_ID, SLF4J_VERSION_UNDER_TEST),
- localMavenArtifact(SLF4J_GROUP_ID, JDK14_BINDING_BUNDLE_ARTIFACT_ID, SLF4J_VERSION_UNDER_TEST),
- localMavenArtifact(SLF4J_GROUP_ID, TEST_BUNDLE_ARTIFACT_ID,
- SLF4J_VERSION_UNDER_TEST) };
- }
-
- /**
- * The superclass provides us access to the root bundle context via the
- * 'getBundleContext' operation. Make sure it is not null.
- */
- public void testOSGiStartedOk() {
- BundleContext bundleContext = getBundleContext();
- assertNotNull(bundleContext);
-
- }
-
- /**
- * Makes sure our bundles are in the OSGi runtime and their state is Active.
- *
- */
- public void testSlf4jNopBundleIntegration() {
- Logger log = LoggerFactory.getLogger(JdkBundleTest.class);
- assertNotNull(log);
- BundleContext context = getBundleContext();
- List symNames = new ArrayList();
-
- Bundle[] bundles = context.getBundles();
- log.info("Loaded bundles:");
- for (int i = 0; i < bundles.length; i++) {
- Bundle bundle = bundles[i];
- assertEquals("Bundle " + bundle.getSymbolicName()
- + " is not active.", Bundle.ACTIVE, bundle.getState());
- symNames.add(bundle.getSymbolicName());
- if (bundle.getHeaders().get(Constants.BUNDLE_ACTIVATOR) != null) {
- log.info("Symbolic Name:" + bundle.getSymbolicName()
- + ", Activator:"
- + bundle.getHeaders().get(Constants.BUNDLE_ACTIVATOR));
- } else {
- log.info("Symbolic Name:" + bundle.getSymbolicName());
- }
- }
-
- assertTrue(symNames.contains(JDK_BINDING_BUNDLE_SYM_NAME));
- assertTrue(symNames.contains(TEST_BUNDLE_SYM_NAME));
-
- }
-
- public void testProbeService(){
- Logger log = LoggerFactory.getLogger(JdkBundleTest.class);
- log.debug("Testing probe");
- BundleContext context = getBundleContext();
- ServiceReference ref = context.getServiceReference( Probe.class.getName() );
- assertNotNull( "Service Reference is null", ref );
- Probe probe = ( Probe ) context.getService( ref );
- assertNotNull( "Cannot find the probe service", probe );
-
- try {
- probe.testCommonslogging();
- fail("Expected exception while testing commons logging.");
- } catch (Throwable t){
- log.debug("Failed to execute the probe.testCommonsLogging. "+t);
-
- }
-
- context.ungetService( ref );
-
- log.debug("Tested probe.");
- }
-
-}
diff --git a/slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/log4j/test/Log4JBundleTest.java b/slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/log4j/test/Log4JBundleTest.java
deleted file mode 100644
index 556335c..0000000
--- a/slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/log4j/test/Log4JBundleTest.java
+++ /dev/null
@@ -1,181 +0,0 @@
-/*
- * Copyright (c) 2004-2005 SLF4J.ORG
- *
- * 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, and/or sell copies of the Software, and to permit persons
- * to whom the Software is furnished to do so, provided that the above
- * copyright notice(s) and this permission notice appear in all copies of
- * the Software and that both the above copyright notice(s) and this
- * permission notice appear in supporting documentation.
- *
- * 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
- * OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
- * HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY
- * SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER
- * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
- * CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
- * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- * Except as contained in this notice, the name of a copyright holder
- * shall not be used in advertising or otherwise to promote the sale, use
- * or other dealings in this Software without prior written authorization
- * of the copyright holder.
- *
- */
-
-package org.slf4j.osgi.integration.log4j.test;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.osgi.framework.Bundle;
-import org.osgi.framework.BundleContext;
-import org.osgi.framework.Constants;
-import org.osgi.framework.ServiceReference;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.slf4j.osgi.integration.IntegrationTestConstants;
-import org.slf4j.osgi.test.service.Probe;
-import org.springframework.osgi.test.ConfigurableBundleCreatorTests;
-
-/**
- *
- * <code>Log4JBundleTest</code> starts up an OSGi environment (equinox,
- * knopflerfish, or felix according to the profile selected) and installs the
- * slf4j.osgi.test.bundle, the slf4j.log4j12 bundle and the bundles they depend
- * on.
- *
- * The slf4j.log4j12 will use the log4j bundle associated with the Spring-OSGi
- * testing framework.
- *
- * The test classes in this project will be turned into a virtual bundle which
- * is also installed and the tests are then run inside the OSGi runtime.
- *
- * The tests have access to a BundleContext, which we use to test that all
- * bundles have been started.
- *
- *
- * @author John Conlon
- */
-public class Log4JBundleTest extends ConfigurableBundleCreatorTests implements IntegrationTestConstants {
-
-
-
-
-
-
- /**
- * The manifest to use for the "virtual bundle" created out of the test
- * classes and resources in this project
- *
- * This is actually the boilerplate manifest with one additional
- * import-package added. We should provide a simpler customization point for
- * such use cases that doesn't require duplication of the entire manifest...
- */
- protected String getManifestLocation() {
- return "classpath:org/slf4j/osgi/integration/log4j/test/MANIFEST.MF";
- }
-
- /**
- * The location of the packaged OSGi bundles to be installed for this test.
- * Values are Spring resource paths. The bundles we want to use are part of
- * the same multi-project maven build as this project is. Hence we use the
- * localMavenArtifact helper method to find the bundles produced by the
- * package phase of the maven build (these tests will run after the
- * packaging phase, in the integration-test phase).
- *
- * JUnit, commons-logging, spring-core and the spring OSGi test bundle are
- * automatically included so they do not need to be specified here.
- *
- * Except in the case of slf4j.log4j12 using the log4j bundle associated
- * with the Spring-OSGi testing framework our test bundles are using package
- * import and export versions to keep these other logging bundles from
- * getting mixed up with our test bundles.
- */
- protected String[] getBundleLocations() {
- return new String[] {
- localMavenArtifact(SPRINGFRAMEWORK_OSGI_GROUP_NAME,
- "aopalliance.osgi", "1.0-SNAPSHOT"),
- localMavenArtifact(SPRINGFRAMEWORK_OSGI_GROUP_NAME,
- "spring-context", "2.1-SNAPSHOT"),
- localMavenArtifact(SPRINGFRAMEWORK_OSGI_GROUP_NAME, "spring-beans",
- "2.1-SNAPSHOT"),
- localMavenArtifact(SPRINGFRAMEWORK_OSGI_GROUP_NAME,
- "spring-osgi-core", "1.0-SNAPSHOT"),
- localMavenArtifact(SPRINGFRAMEWORK_OSGI_GROUP_NAME, "spring-aop",
- "2.1-SNAPSHOT"),
- localMavenArtifact(SLF4J_GROUP_ID, API_BUNDLE_ARTIFACT_ID, SLF4J_VERSION_UNDER_TEST),
- localMavenArtifact(SLF4J_GROUP_ID, LOG4J12_BINDING_BUNDLE_ARTIFACT_ID, SLF4J_VERSION_UNDER_TEST),
- localMavenArtifact(SLF4J_GROUP_ID, TEST_BUNDLE_ARTIFACT_ID,
- SLF4J_VERSION_UNDER_TEST) };
- }
-
- /**
- * The superclass provides us access to the root bundle context via the
- * 'getBundleContext' operation. Make sure it is not null.
- */
- public void testOSGiStartedOk() {
- BundleContext bundleContext = getBundleContext();
- assertNotNull(bundleContext);
-
- }
-
- /**
- * Makes sure our bundles are in the OSGi runtime and their state is Active.
- *
- */
- public void testSlf4jLog4j12BundleIntegration() {
- Logger log = LoggerFactory.getLogger(Log4JBundleTest.class);
- assertNotNull(log);
- BundleContext context = getBundleContext();
- List symNames = new ArrayList();
-
- Bundle[] bundles = context.getBundles();
- log.info("Loaded bundles:");
- for (int i = 0; i < bundles.length; i++) {
- Bundle bundle = bundles[i];
- assertEquals("Bundle " + bundle.getSymbolicName()
- + " is not active.", Bundle.ACTIVE, bundle.getState());
- symNames.add(bundle.getSymbolicName());
- if (bundle.getHeaders().get(Constants.BUNDLE_ACTIVATOR) != null) {
- log.info("Symbolic Name:" + bundle.getSymbolicName()
- + ", Activator:"
- + bundle.getHeaders().get(Constants.BUNDLE_ACTIVATOR));
- } else {
- log.info("Symbolic Name:" + bundle.getSymbolicName());
- }
- }
-
- assertTrue(symNames.contains(LOG4J_BINDING_BUNDLE_SYM_NAME));
- assertTrue(symNames.contains(TEST_BUNDLE_SYM_NAME));
-
- }
-
- public void testProbeService() {
- BundleContext context = getBundleContext();
- ServiceReference ref = context.getServiceReference(Probe.class
- .getName());
- assertNotNull("Service Reference is null", ref);
- Probe probe = null;
-
- probe = (Probe) context.getService(ref);
- assertNotNull("Cannot find the probe service", probe);
-
- try {
- probe.testCommonslogging();
- fail("The commons logging package should not be found. Instead an exception should be thrown.");
- } catch (Throwable t) {
- // "Expect.",t);
- }
-
- context.ungetService(ref);
-
- }
-}
diff --git a/slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/logservice/test/LogServiceBundleTest.java b/slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/logservice/test/LogServiceBundleTest.java
deleted file mode 100644
index 436c612..0000000
--- a/slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/logservice/test/LogServiceBundleTest.java
+++ /dev/null
@@ -1,188 +0,0 @@
-/*
- * Copyright (c) 2004-2005 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, and/or sell copies of the Software, and to permit persons
- * to whom the Software is furnished to do so, provided that the above
- * copyright notice(s) and this permission notice appear in all copies of
- * the Software and that both the above copyright notice(s) and this
- * permission notice appear in supporting documentation.
- *
- * 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
- * OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
- * HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY
- * SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER
- * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
- * CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
- * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- * Except as contained in this notice, the name of a copyright holder
- * shall not be used in advertising or otherwise to promote the sale, use
- * or other dealings in this Software without prior written authorization
- * of the copyright holder.
- *
- */
-
-package org.slf4j.osgi.integration.logservice.test;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.osgi.framework.Bundle;
-import org.osgi.framework.BundleContext;
-import org.osgi.framework.Constants;
-import org.osgi.framework.ServiceReference;
-import org.osgi.service.log.LogService;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.slf4j.osgi.integration.IntegrationTestConstants;
-import org.slf4j.osgi.integration.nop.test.NopBundleTest;
-import org.springframework.osgi.test.ConfigurableBundleCreatorTests;
-
-/**
- *
- * <code>LogServiceBundleTest</code> starts up an OSGi environment (equinox,
- * knopflerfish, or felix according to the profile selected) and installs the
- * slf4j.osgi.test.bundle, the slf4j.simple bundle and the bundles they depend
- * on.
- *
- * The test classes in this project will be turned into a virtual bundle which
- * is also installed and the tests are then run inside the OSGi runtime.
- *
- * The tests have access to a BundleContext, which we use to test that all
- * bundles have been started.
- *
- *
- * @author John Conlon
- */
-public class LogServiceBundleTest extends ConfigurableBundleCreatorTests implements IntegrationTestConstants{
-
-
-
-
- /**
- * The manifest to use for the "virtual bundle" created out of the test
- * classes and resources in this project
- *
- * This is actually the boilerplate manifest with one additional
- * import-package added. We should provide a simpler customization point for
- * such use cases that doesn't require duplication of the entire manifest...
- */
- protected String getManifestLocation() {
- return "classpath:org/slf4j/osgi/integration/logservice/test/MANIFEST.MF";
- }
-
- /**
- * The location of the packaged OSGi bundles to be installed for this test.
- * Values are Spring resource paths. The bundles we want to use are part of
- * the same multi-project maven build as this project is. Hence we use the
- * localMavenArtifact helper method to find the bundles produced by the
- * package phase of the maven build (these tests will run after the
- * packaging phase, in the integration-test phase).
- *
- * JUnit, commons-logging, spring-core and the spring OSGi test bundle are
- * automatically included so they do not need to be specified here.
- *
- * Our test bundles are using package import and export versions to keep
- * these other logging bundles from getting mixed up with our test bundles.
- */
- protected String[] getBundleLocations() {
- return new String[] {
- localMavenArtifact(SPRINGFRAMEWORK_OSGI_GROUP_NAME,
- "aopalliance.osgi", "1.0-SNAPSHOT"),
- localMavenArtifact(SPRINGFRAMEWORK_OSGI_GROUP_NAME,
- "spring-context", "2.1-SNAPSHOT"),
- localMavenArtifact(SPRINGFRAMEWORK_OSGI_GROUP_NAME, "spring-beans",
- "2.1-SNAPSHOT"),
- localMavenArtifact(SPRINGFRAMEWORK_OSGI_GROUP_NAME,
- "spring-osgi-core", "1.0-SNAPSHOT"),
- localMavenArtifact(SPRINGFRAMEWORK_OSGI_GROUP_NAME, "spring-aop",
- "2.1-SNAPSHOT"),
- localMavenArtifact( "org.osgi", "org.osgi.compendium", "4.0" ),
- localMavenArtifact(SLF4J_GROUP_ID, API_BUNDLE_ARTIFACT_ID, SLF4J_VERSION_UNDER_TEST),
- localMavenArtifact(SLF4J_GROUP_ID,
- SIMPLE_BINDING_BUNDLE_ARTIFACT_ID, SLF4J_VERSION_UNDER_TEST),
- localMavenArtifact(SLF4J_GROUP_ID,
- LOGSERVICE_ADAPTER_BUNDLE_ARTIFACT_ID, SLF4J_VERSION_UNDER_TEST) };
- }
-
- /**
- * The superclass provides us access to the root bundle context via the
- * 'getBundleContext' operation. Make sure it is not null.
- */
- public void testOSGiStartedOk() {
- BundleContext bundleContext = getBundleContext();
- assertNotNull(bundleContext);
-
- }
-
- /**
- * Makes sure our bundles are in the OSGi runtime and their state is Active.
- *
- */
- public void testSlf4jLogServiceBundles() {
- Logger log = LoggerFactory.getLogger(LogServiceBundleTest.class);
- assertNotNull(log);
- BundleContext context = getBundleContext();
- List symNames = new ArrayList();
-
- Bundle[] bundles = context.getBundles();
- log.info("Loaded bundles:");
- for (int i = 0; i < bundles.length; i++) {
- Bundle bundle = bundles[i];
- assertEquals("Bundle " + bundle.getSymbolicName()
- + " is not active.", Bundle.ACTIVE, bundle.getState());
- symNames.add(bundle.getSymbolicName());
- if (bundle.getHeaders().get(Constants.BUNDLE_ACTIVATOR) != null) {
- log.info("Symbolic Name:" + bundle.getSymbolicName()
- + ", Activator:"
- + bundle.getHeaders().get(Constants.BUNDLE_ACTIVATOR));
- } else {
- log.info("Symbolic Name:" + bundle.getSymbolicName());
- }
- }
-
- assertTrue(symNames.contains(SIMPLE_BINDING_BUNDLE_SYM_NAME));
- assertTrue(symNames.contains(LOGSERVICE_ADAPTER_BUNDLE_SYM_NAME));
-
- }
-
- public void testLogService() {
- Logger log = LoggerFactory.getLogger(NopBundleTest.class);
- log.debug("Testing LogSerivce");
- BundleContext context = getBundleContext();
- ServiceReference ref = context.getServiceReference(LogService.class.getName());
- assertNotNull("Service Reference is null", ref);
- LogService logService = null;
-
- logService = (LogService) context.getService(ref);
- assertNotNull("Cannot find the probe service", logService);
-
- exerciseLogService( logService);
- exerciseLogService( logService,ref);
-
- context.ungetService(ref);
- }
-
- private void exerciseLogService(LogService logService, ServiceReference ref){
- logService.log(ref, LogService.LOG_DEBUG, "Loaded bundles" );
- logService.log(ref, LogService.LOG_INFO, "Found LogService. " );
- logService.log(ref, LogService.LOG_WARNING, "Found LogService. " );
- logService.log(ref, LogService.LOG_ERROR, "Found LogService. ", new Exception("just a test.") );
- }
-
- private void exerciseLogService(LogService logService){
- logService.log(LogService.LOG_DEBUG, "Loaded bundles" );
- logService.log(LogService.LOG_INFO, "Found LogService. " );
- logService.log(LogService.LOG_WARNING, "Found LogService. " );
- logService.log(LogService.LOG_ERROR, "Found LogService. ", new Exception("just a test.") );
- }
-
-}
diff --git a/slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/nop/test/NopBundleTest.java b/slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/nop/test/NopBundleTest.java
deleted file mode 100644
index d9394af..0000000
--- a/slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/nop/test/NopBundleTest.java
+++ /dev/null
@@ -1,174 +0,0 @@
-/*
- * Copyright (c) 2004-2005 SLF4J.ORG
- *
- * 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, and/or sell copies of the Software, and to permit persons
- * to whom the Software is furnished to do so, provided that the above
- * copyright notice(s) and this permission notice appear in all copies of
- * the Software and that both the above copyright notice(s) and this
- * permission notice appear in supporting documentation.
- *
- * 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
- * OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
- * HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY
- * SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER
- * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
- * CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
- * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- * Except as contained in this notice, the name of a copyright holder
- * shall not be used in advertising or otherwise to promote the sale, use
- * or other dealings in this Software without prior written authorization
- * of the copyright holder.
- *
- */
-
-package org.slf4j.osgi.integration.nop.test;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.osgi.framework.Bundle;
-import org.osgi.framework.BundleContext;
-import org.osgi.framework.Constants;
-import org.osgi.framework.ServiceReference;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.slf4j.osgi.integration.IntegrationTestConstants;
-import org.slf4j.osgi.test.service.Probe;
-import org.springframework.osgi.test.ConfigurableBundleCreatorTests;
-
-/**
- *
- * <code>JdkBundleTest</code> starts up an OSGi environment (equinox,
- * knopflerfish, or felix according to the profile selected) and installs the
- * slf4j.osgi.test.bundle, the slf4j.nop bundle and the bundles they depend on.
- *
- * The test classes in this project will be turned into a virtual bundle which is
- * also installed and the tests are then run inside the OSGi runtime.
- *
- * The tests have access to a BundleContext, which we use to test that all bundles have
- * been started.
- *
- *
- * @author John Conlon
- */
-public class NopBundleTest extends ConfigurableBundleCreatorTests implements IntegrationTestConstants{
-
-
-
- /**
- * The manifest to use for the "virtual bundle" created out of the test
- * classes and resources in this project
- *
- * This is actually the boilerplate manifest with one additional
- * import-package added. We should provide a simpler customization point for
- * such use cases that doesn't require duplication of the entire manifest...
- */
- protected String getManifestLocation() {
- return "classpath:org/slf4j/osgi/integration/nop/test/MANIFEST.MF";
- }
-
- /**
- * The location of the packaged OSGi bundles to be installed for this test.
- * Values are Spring resource paths. The bundles we want to use are part of
- * the same multi-project maven build as this project is. Hence we use the
- * localMavenArtifact helper method to find the bundles produced by the
- * package phase of the maven build (these tests will run after the
- * packaging phase, in the integration-test phase).
- *
- * JUnit, commons-logging, spring-core and the spring OSGi test bundle are
- * automatically included so they do not need to be specified here.
- *
- * Our test bundles are using package import and export versions to keep
- * these other logging bundles from getting mixed up with our test bundles.
- */
- protected String[] getBundleLocations() {
- return new String[] {
- localMavenArtifact(SPRINGFRAMEWORK_OSGI_GROUP_NAME,
- "aopalliance.osgi", "1.0-SNAPSHOT"),
- localMavenArtifact(SPRINGFRAMEWORK_OSGI_GROUP_NAME,
- "spring-context", "2.1-SNAPSHOT"),
- localMavenArtifact(SPRINGFRAMEWORK_OSGI_GROUP_NAME, "spring-beans",
- "2.1-SNAPSHOT"),
- localMavenArtifact(SPRINGFRAMEWORK_OSGI_GROUP_NAME,
- "spring-osgi-core", "1.0-SNAPSHOT"),
- localMavenArtifact(SPRINGFRAMEWORK_OSGI_GROUP_NAME, "spring-aop",
- "2.1-SNAPSHOT"),
- localMavenArtifact(SLF4J_GROUP_ID, API_BUNDLE_ARTIFACT_ID, SLF4J_VERSION_UNDER_TEST),
- localMavenArtifact(SLF4J_GROUP_ID, NOP_BINDING_BUNDLE_ARTIFACT_ID, SLF4J_VERSION_UNDER_TEST),
- localMavenArtifact(SLF4J_GROUP_ID, TEST_BUNDLE_ARTIFACT_ID,
- SLF4J_VERSION_UNDER_TEST) };
- }
-
- /**
- * The superclass provides us access to the root bundle context via the
- * 'getBundleContext' operation. Make sure it is not null.
- */
- public void testOSGiStartedOk() {
- BundleContext bundleContext = getBundleContext();
- assertNotNull(bundleContext);
-
- }
-
- /**
- * Makes sure our bundles are in the OSGi runtime and their state is Active.
- *
- */
- public void testSlf4jNopBundleIntegration() {
- Logger log = LoggerFactory.getLogger(NopBundleTest.class);
- assertNotNull(log);
- BundleContext context = getBundleContext();
- List symNames = new ArrayList();
-
- Bundle[] bundles = context.getBundles();
- log.info("Loaded bundles:");
- for (int i = 0; i < bundles.length; i++) {
- Bundle bundle = bundles[i];
- assertEquals("Bundle " + bundle.getSymbolicName()
- + " is not active.", Bundle.ACTIVE, bundle.getState());
- symNames.add(bundle.getSymbolicName());
- if (bundle.getHeaders().get(Constants.BUNDLE_ACTIVATOR) != null) {
- log.info("Symbolic Name:" + bundle.getSymbolicName()
- + ", Activator:"
- + bundle.getHeaders().get(Constants.BUNDLE_ACTIVATOR));
- } else {
- log.info("Symbolic Name:" + bundle.getSymbolicName());
- }
- }
-
- assertTrue("Could not find "+NOP_BINDING_BUNDLE_SYM_NAME, symNames.contains(NOP_BINDING_BUNDLE_SYM_NAME));
- assertTrue(symNames.contains(TEST_BUNDLE_SYM_NAME));
-
- }
-
- public void testProbeService(){
- Logger log = LoggerFactory.getLogger(NopBundleTest.class);
- log.debug("Testing probe");
- BundleContext context = getBundleContext();
- ServiceReference ref = context.getServiceReference( Probe.class.getName() );
- assertNotNull( "Service Reference is null", ref );
- Probe probe = ( Probe ) context.getService( ref );
- assertNotNull( "Cannot find the probe service", probe );
-
- try {
- probe.testCommonslogging();
- fail("Expected exception while testing commons logging.");
- } catch (Throwable t){
- log.debug("Failed to execute the probe.testCommonsLogging. "+t);
-
- }
-
- context.ungetService( ref );
-
- log.debug("Tested probe.");
- }
-
-}
diff --git a/slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/simple/test/SimpleBundleTest.java b/slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/simple/test/SimpleBundleTest.java
deleted file mode 100644
index 29052ec..0000000
--- a/slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/simple/test/SimpleBundleTest.java
+++ /dev/null
@@ -1,177 +0,0 @@
-/*
- * Copyright (c) 2004-2005 SLF4J.ORG
- *
- * 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, and/or sell copies of the Software, and to permit persons
- * to whom the Software is furnished to do so, provided that the above
- * copyright notice(s) and this permission notice appear in all copies of
- * the Software and that both the above copyright notice(s) and this
- * permission notice appear in supporting documentation.
- *
- * 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
- * OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
- * HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY
- * SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER
- * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
- * CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
- * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- * Except as contained in this notice, the name of a copyright holder
- * shall not be used in advertising or otherwise to promote the sale, use
- * or other dealings in this Software without prior written authorization
- * of the copyright holder.
- *
- */
-
-package org.slf4j.osgi.integration.simple.test;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.osgi.framework.Bundle;
-import org.osgi.framework.BundleContext;
-import org.osgi.framework.Constants;
-import org.osgi.framework.ServiceReference;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.slf4j.osgi.integration.IntegrationTestConstants;
-import org.slf4j.osgi.integration.nop.test.NopBundleTest;
-import org.slf4j.osgi.test.service.Probe;
-import org.springframework.osgi.test.ConfigurableBundleCreatorTests;
-
-/**
- *
- * <code>LogServiceBundleTest</code> starts up an OSGi environment (equinox,
- * knopflerfish, or felix according to the profile selected) and installs the
- * slf4j.osgi.test.bundle, the slf4j.simple bundle and the bundles they depend
- * on.
- *
- * The test classes in this project will be turned into a virtual bundle which
- * is also installed and the tests are then run inside the OSGi runtime.
- *
- * The tests have access to a BundleContext, which we use to test that all
- * bundles have been started.
- *
- *
- * @author John Conlon
- */
-public class SimpleBundleTest extends ConfigurableBundleCreatorTests implements IntegrationTestConstants{
-
-
-
-
- /**
- * The manifest to use for the "virtual bundle" created out of the test
- * classes and resources in this project
- *
- * This is actually the boilerplate manifest with one additional
- * import-package added. We should provide a simpler customization point for
- * such use cases that doesn't require duplication of the entire manifest...
- */
- protected String getManifestLocation() {
- return "classpath:org/slf4j/osgi/integration/simple/test/MANIFEST.MF";
- }
-
- /**
- * The location of the packaged OSGi bundles to be installed for this test.
- * Values are Spring resource paths. The bundles we want to use are part of
- * the same multi-project maven build as this project is. Hence we use the
- * localMavenArtifact helper method to find the bundles produced by the
- * package phase of the maven build (these tests will run after the
- * packaging phase, in the integration-test phase).
- *
- * JUnit, commons-logging, spring-core and the spring OSGi test bundle are
- * automatically included so they do not need to be specified here.
- *
- * Our test bundles are using package import and export versions to keep
- * these other logging bundles from getting mixed up with our test bundles.
- */
- protected String[] getBundleLocations() {
- return new String[] {
- localMavenArtifact(SPRINGFRAMEWORK_OSGI_GROUP_NAME,
- "aopalliance.osgi", "1.0-SNAPSHOT"),
- localMavenArtifact(SPRINGFRAMEWORK_OSGI_GROUP_NAME,
- "spring-context", "2.1-SNAPSHOT"),
- localMavenArtifact(SPRINGFRAMEWORK_OSGI_GROUP_NAME, "spring-beans",
- "2.1-SNAPSHOT"),
- localMavenArtifact(SPRINGFRAMEWORK_OSGI_GROUP_NAME,
- "spring-osgi-core", "1.0-SNAPSHOT"),
- localMavenArtifact(SPRINGFRAMEWORK_OSGI_GROUP_NAME, "spring-aop",
- "2.1-SNAPSHOT"),
- localMavenArtifact(SLF4J_GROUP_ID, API_BUNDLE_ARTIFACT_ID, SLF4J_VERSION_UNDER_TEST),
- localMavenArtifact(SLF4J_GROUP_ID, SIMPLE_BINDING_BUNDLE_ARTIFACT_ID, SLF4J_VERSION_UNDER_TEST),
- localMavenArtifact(SLF4J_GROUP_ID, JCL104_ADAPTER_BUNDLE_ARTIFACT_ID, SLF4J_VERSION_UNDER_TEST),
- localMavenArtifact(SLF4J_GROUP_ID, TEST_BUNDLE_ARTIFACT_ID,
- SLF4J_VERSION_UNDER_TEST) };
- }
-
- /**
- * The superclass provides us access to the root bundle context via the
- * 'getBundleContext' operation. Make sure it is not null.
- */
- public void testOSGiStartedOk() {
- BundleContext bundleContext = getBundleContext();
- assertNotNull(bundleContext);
-
- }
-
- /**
- * Makes sure our bundles are in the OSGi runtime and their state is Active.
- *
- */
- public void testSlf4jNopBundles() {
- Logger log = LoggerFactory.getLogger(SimpleBundleTest.class);
- assertNotNull(log);
- BundleContext context = getBundleContext();
- List symNames = new ArrayList();
-
- Bundle[] bundles = context.getBundles();
- log.info("Loaded bundles:");
- for (int i = 0; i < bundles.length; i++) {
- Bundle bundle = bundles[i];
- assertEquals("Bundle " + bundle.getSymbolicName()
- + " is not active.", Bundle.ACTIVE, bundle.getState());
- symNames.add(bundle.getSymbolicName());
- if (bundle.getHeaders().get(Constants.BUNDLE_ACTIVATOR) != null) {
- log.info("Symbolic Name:" + bundle.getSymbolicName()
- + ", Activator:"
- + bundle.getHeaders().get(Constants.BUNDLE_ACTIVATOR));
- } else {
- log.info("Symbolic Name:" + bundle.getSymbolicName());
- }
- }
-
- assertTrue(symNames.contains(SIMPLE_BINDING_BUNDLE_SYM_NAME));
- assertTrue(symNames.contains(TEST_BUNDLE_SYM_NAME));
- assertTrue(symNames.contains(JCL_ADAPTER_BUNDLE_SYM_NAME));
-
- }
-
- public void testProbeService() {
- Logger log = LoggerFactory.getLogger(NopBundleTest.class);
- log.debug("Testing probe");
- BundleContext context = getBundleContext();
- ServiceReference ref = context.getServiceReference(Probe.class.getName());
- assertNotNull("Service Reference is null", ref);
- Probe probe = null;
-
- probe = (Probe) context.getService(ref);
- assertNotNull("Cannot find the probe service", probe);
-
- try {
- probe.testCommonslogging();
-
- } catch (Throwable t) {
- fail("Failed to execute the probe.testCommonsLogging. "+t);
- }
- context.ungetService(ref);
- }
-
-}
diff --git a/slf4j-osgi-integration-test/src/test/resources/log4j.properties b/slf4j-osgi-integration-test/src/test/resources/log4j.properties
deleted file mode 100644
index 24c9317..0000000
--- a/slf4j-osgi-integration-test/src/test/resources/log4j.properties
+++ /dev/null
@@ -1,9 +0,0 @@
-log4j.rootCategory=DEBUG,console
-
-# Console Appender
-log4j.appender.console=org.apache.log4j.ConsoleAppender
-log4j.appender.console.target=System.out
-log4j.appender.console.layout=org.apache.log4j.PatternLayout
-log4j.appender.console.layout.ConversionPattern=%-5p %l - %m%n
-
-log4j.logger.org.springframework.osgi=DEBUG
\ No newline at end of file
diff --git a/slf4j-osgi-integration-test/src/test/resources/org/slf4j/osgi/integration/jdk/test/MANIFEST.MF b/slf4j-osgi-integration-test/src/test/resources/org/slf4j/osgi/integration/jdk/test/MANIFEST.MF
deleted file mode 100644
index e5f850b..0000000
--- a/slf4j-osgi-integration-test/src/test/resources/org/slf4j/osgi/integration/jdk/test/MANIFEST.MF
+++ /dev/null
@@ -1,14 +0,0 @@
-Manifest-Version: 1.0
-Bundle-Name: simple-service-integration-tests
-Bundle-SymbolicName: org.slf4j.osgi.integration.jdk.test
-Bundle-Vendor: SLF4J ORG
-Bundle-Activator: org.springframework.osgi.test.JUnitTestActivator
-Import-Package: junit.framework,
- org.osgi.framework;specification-version="1.3.0",
- org.springframework.core.io;specification-version="2.1.0",
- org.springframework.osgi.test,
- org.slf4j,
- org.slf4j.osgi.test.service
-
-
-
diff --git a/slf4j-osgi-integration-test/src/test/resources/org/slf4j/osgi/integration/log4j/test/MANIFEST.MF b/slf4j-osgi-integration-test/src/test/resources/org/slf4j/osgi/integration/log4j/test/MANIFEST.MF
deleted file mode 100644
index cb1bd92..0000000
--- a/slf4j-osgi-integration-test/src/test/resources/org/slf4j/osgi/integration/log4j/test/MANIFEST.MF
+++ /dev/null
@@ -1,14 +0,0 @@
-Manifest-Version: 1.0
-Bundle-Name: simple-service-integration-tests
-Bundle-SymbolicName: org.slf4j.osgi.integration.log4j.test
-Bundle-Vendor: SLF4J ORG
-Bundle-Activator: org.springframework.osgi.test.JUnitTestActivator
-Import-Package: junit.framework,
- org.osgi.framework;specification-version="1.3.0",
- org.springframework.core.io;specification-version="2.1.0",
- org.springframework.osgi.test,
- org.slf4j,
- org.slf4j.osgi.test.service
-
-
-
diff --git a/slf4j-osgi-integration-test/src/test/resources/org/slf4j/osgi/integration/logservice/test/MANIFEST.MF b/slf4j-osgi-integration-test/src/test/resources/org/slf4j/osgi/integration/logservice/test/MANIFEST.MF
deleted file mode 100644
index a2742be..0000000
--- a/slf4j-osgi-integration-test/src/test/resources/org/slf4j/osgi/integration/logservice/test/MANIFEST.MF
+++ /dev/null
@@ -1,15 +0,0 @@
-Manifest-Version: 1.0
-Bundle-Name: simple-service-integration-tests
-Bundle-SymbolicName: org.slf4j.osgi.integration.logservice.test
-Bundle-Version: 1.3.0
-Bundle-Vendor: SLF4J ORG
-Bundle-Activator: org.springframework.osgi.test.JUnitTestActivator
-Import-Package: junit.framework,
- org.osgi.framework;specification-version="1.3.0",
- org.springframework.core.io;specification-version="2.1.0",
- org.springframework.osgi.test,
- org.slf4j,
- org.osgi.service.log
-
-
-
diff --git a/slf4j-osgi-integration-test/src/test/resources/org/slf4j/osgi/integration/nop/test/MANIFEST.MF b/slf4j-osgi-integration-test/src/test/resources/org/slf4j/osgi/integration/nop/test/MANIFEST.MF
deleted file mode 100644
index 9be5535..0000000
--- a/slf4j-osgi-integration-test/src/test/resources/org/slf4j/osgi/integration/nop/test/MANIFEST.MF
+++ /dev/null
@@ -1,14 +0,0 @@
-Manifest-Version: 1.0
-Bundle-Name: simple-service-integration-tests
-Bundle-SymbolicName: org.slf4j.osgi.integration.nop.test
-Bundle-Vendor: SLF4J ORG
-Bundle-Activator: org.springframework.osgi.test.JUnitTestActivator
-Import-Package: junit.framework,
- org.osgi.framework;specification-version="1.3.0",
- org.springframework.core.io;specification-version="2.1.0",
- org.springframework.osgi.test,
- org.slf4j,
- org.slf4j.osgi.test.service
-
-
-
diff --git a/slf4j-osgi-integration-test/src/test/resources/org/slf4j/osgi/integration/simple/test/MANIFEST.MF b/slf4j-osgi-integration-test/src/test/resources/org/slf4j/osgi/integration/simple/test/MANIFEST.MF
deleted file mode 100644
index 987f81f..0000000
--- a/slf4j-osgi-integration-test/src/test/resources/org/slf4j/osgi/integration/simple/test/MANIFEST.MF
+++ /dev/null
@@ -1,14 +0,0 @@
-Manifest-Version: 1.0
-Bundle-Name: simple-service-integration-tests
-Bundle-SymbolicName: org.slf4j.osgi.integration.simple.test
-Bundle-Vendor: SLF4J ORG
-Bundle-Activator: org.springframework.osgi.test.JUnitTestActivator
-Import-Package: junit.framework,
- org.osgi.framework;specification-version="1.3.0",
- org.springframework.core.io;specification-version="2.1.0",
- org.springframework.osgi.test,
- org.slf4j,
- org.slf4j.osgi.test.service
-
-
-
diff --git a/slf4j-osgi-test-bundle/pom.xml b/slf4j-osgi-test-bundle/pom.xml
deleted file mode 100644
index 5e522a0..0000000
--- a/slf4j-osgi-test-bundle/pom.xml
+++ /dev/null
@@ -1,76 +0,0 @@
-<project
- xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
- <parent>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-parent</artifactId>
- <version>1.6.7-SNAPSHOT</version>
- </parent>
-
- <modelVersion>4.0.0</modelVersion>
-
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-osgi-test-bundle</artifactId>
- <packaging>bundle</packaging>
- <name>SLF4J Testing Bundle</name>
- <description>SLF4J OSGi testing bundle.</description>
- <url>http://www.slf4j.org</url>
-
- <dependencies>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <scope>provided</scope>
- </dependency>
-
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-nop</artifactId>
- <version>${project.version}</version>
- <scope>provided</scope>
- </dependency>
-
- <!-- To get org.apache.commons.logging package for
- commons logging testing.-->
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>jcl-over-slf4j</artifactId>
- <version>${project.version}</version>
- <scope>provided</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.felix</groupId>
- <artifactId>org.osgi.core</artifactId>
- <version>0.8.0-SNAPSHOT</version>
- <scope>provided</scope>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <version>0.9.0-incubator-SNAPSHOT</version>
- <extensions>true</extensions>
- <configuration>
- <instructions>
- <Export-Package>
- org.slf4j.osgi.test.service
- </Export-Package>
- <Private-Package>org.slf4j.osgi.test</Private-Package>
- <Import-Package>
- org.osgi.framework,org.slf4j;version="[1.3,1.4)"
- </Import-Package>
- <Bundle-Activator>org.slf4j.osgi.test.Activator</Bundle-Activator>
- <DynamicImport-Package>org.apache.commons.logging</DynamicImport-Package>
- </instructions>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
-</project>
\ No newline at end of file
diff --git a/slf4j-osgi-test-bundle/src/main/java/org/slf4j/osgi/test/Activator.java b/slf4j-osgi-test-bundle/src/main/java/org/slf4j/osgi/test/Activator.java
deleted file mode 100644
index cd95f28..0000000
--- a/slf4j-osgi-test-bundle/src/main/java/org/slf4j/osgi/test/Activator.java
+++ /dev/null
@@ -1,184 +0,0 @@
-/*
- * Copyright (c) 2004-2005 SLF4J.ORG
- *
- * 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, and/or sell copies of the Software, and to permit persons
- * to whom the Software is furnished to do so, provided that the above
- * copyright notice(s) and this permission notice appear in all copies of
- * the Software and that both the above copyright notice(s) and this
- * permission notice appear in supporting documentation.
- *
- * 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
- * OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
- * HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY
- * SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER
- * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
- * CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
- * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- * Except as contained in this notice, the name of a copyright holder
- * shall not be used in advertising or otherwise to promote the sale, use
- * or other dealings in this Software without prior written authorization
- * of the copyright holder.
- *
- */
-
-package org.slf4j.osgi.test;
-
-import org.osgi.framework.BundleActivator;
-import org.osgi.framework.BundleContext;
-import org.osgi.framework.ServiceEvent;
-import org.osgi.framework.ServiceListener;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.slf4j.Marker;
-import org.slf4j.MarkerFactory;
-import org.slf4j.osgi.test.service.Probe;
-
-import java.util.Hashtable;
-
-/**
- * <code>Activator</code> implements a simple bundle to test OSGi slf4j
- * logging components.
- *
- * Upon startup, shutdown, and receiving a service event, it logs event
- * details.
- *
- * On startup it logs a series of messages.
- *
- * @author John Conlon
- */
-public class Activator implements BundleActivator, ServiceListener {
-
- private final Logger log = LoggerFactory.getLogger(Activator.class);
-
- /**
- * Implements <code>BundleActivator.start()</code>. Logs a message adds
- * itself to the bundle context as a service listener, and exercises the
- * logger.
- *
- * @param bundleContext
- * the framework context for the bundle
- * @throws Exception
- */
- public void start(BundleContext bundleContext) throws Exception {
- log.info("Starting to listen for service events.");
- bundleContext.addServiceListener(this);
-
- Probe probe = new ProbeImpl();
- Hashtable props = new Hashtable();
- props.put("description", "Service for testing slf4j components.");
- bundleContext.registerService(Probe.class.getName(),probe, props);
-
- test1();
- test2();
- testNull();
- testMarker();
- }
-
- /**
- * Implements <code>BundleActivator.stop()</code>. Prints a message and
- * removes itself from the bundle context as a service listener.
- *
- * @param bundleContext
- * the framework context for the bundle
- * @throws Exception
- */
- public void stop(BundleContext bundleContext) throws Exception {
- bundleContext.removeServiceListener(this);
- log.info("Stopped listening for service events.");
-
- // Note: It is not required that we remove the listener here, since
- // the framework will do it automatically anyway.
- }
-
- /**
- * Implements <code>ServiceListener.serviceChanges()</code>. Logs the
- * details of any service event from the framework.
- *
- * @param event
- * the fired service event
- */
- public void serviceChanged(ServiceEvent event) {
- String[] objectClass = (String[]) event.getServiceReference()
- .getProperty("objectClass");
- if (event.getType() == ServiceEvent.REGISTERED) {
- log.info("SimpleBundle: Service of type {} registered.",
- objectClass[0]);
- } else if (event.getType() == ServiceEvent.UNREGISTERING) {
- log.info("SimpleBundle: Service of type {} unregistered.",
- objectClass[0]);
- } else if (event.getType() == ServiceEvent.MODIFIED) {
- log.info("SimpleBundle: Service of type {} modified.",
- objectClass[0]);
- }
- }
-
- public void test1() {
- Logger logger = LoggerFactory.getLogger("test1");
- logger.debug("Hello world.");
- }
-
- public void test2() {
- Integer i1 = new Integer(1);
- Integer i2 = new Integer(2);
- Integer i3 = new Integer(3);
- Exception e = new Exception("This is a test exception.");
- Logger logger = LoggerFactory.getLogger("test2");
-
- logger.debug("Hello world 1.");
- logger.debug("Hello world {}", i1);
- logger.debug("val={} val={}", i1, i2);
- logger.debug("val={} val={} val={}", new Object[] { i1, i2, i3 });
-
- logger.debug("Hello world 2", e);
- logger.info("Hello world 2.");
-
- logger.warn("Hello world 3.");
- logger.warn("Hello world 3", e);
-
- logger.error("Hello world 4.");
- logger.error("Hello world {}", new Integer(3));
- logger.error("Hello world 4.", e);
- }
-
- public void testNull() {
- Logger logger = LoggerFactory.getLogger("testNull");
- logger.debug(null);
- logger.info(null);
- logger.warn(null);
- logger.error(null);
-
- Exception e = new Exception("This is a test exception.");
- logger.debug(null, e);
- logger.info(null, e);
- logger.warn(null, e);
- logger.error(null, e);
- }
-
- public void testMarker() {
- Logger logger = LoggerFactory.getLogger("testMarker");
- Marker blue = MarkerFactory.getMarker("BLUE");
- logger.debug(blue, "hello");
- logger.info(blue, "hello");
- logger.warn(blue, "hello");
- logger.error(blue, "hello");
-
- logger.debug(blue, "hello {}", "world");
- logger.info(blue, "hello {}", "world");
- logger.warn(blue, "hello {}", "world");
- logger.error(blue, "hello {}", "world");
-
- logger.debug(blue, "hello {} and {} ", "world", "universe");
- logger.info(blue, "hello {} and {} ", "world", "universe");
- logger.warn(blue, "hello {} and {} ", "world", "universe");
- logger.error(blue, "hello {} and {} ", "world", "universe");
- }
-}
diff --git a/slf4j-osgi-test-bundle/src/main/java/org/slf4j/osgi/test/CommonsLoggingTester.java b/slf4j-osgi-test-bundle/src/main/java/org/slf4j/osgi/test/CommonsLoggingTester.java
deleted file mode 100644
index ad1ba13..0000000
--- a/slf4j-osgi-test-bundle/src/main/java/org/slf4j/osgi/test/CommonsLoggingTester.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
- * Copyright (c) 2004-2005 SLF4J.ORG
- *
- * 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, and/or sell copies of the Software, and to permit persons
- * to whom the Software is furnished to do so, provided that the above
- * copyright notice(s) and this permission notice appear in all copies of
- * the Software and that both the above copyright notice(s) and this
- * permission notice appear in supporting documentation.
- *
- * 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
- * OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
- * HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY
- * SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER
- * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
- * CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
- * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- * Except as contained in this notice, the name of a copyright holder
- * shall not be used in advertising or otherwise to promote the sale, use
- * or other dealings in this Software without prior written authorization
- * of the copyright holder.
- *
- */
-
-package org.slf4j.osgi.test;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
-/**
- * <code>CommonsLoggingTester</code> tests org.apache.commons.logging functionality.
- *
- * @author John Conlon
- */
-public class CommonsLoggingTester {
-
- boolean testCommonslogging() throws Exception {
- testIsEnabledAPI();
- testPrintAPI();
- return true;
- }
-
- public void testIsEnabledAPI() {
- // assume that we are running over slf4j-simple
- Log log = LogFactory.getLog(CommonsLoggingTester.class);
- assertFalse("Trace was enabled", log.isTraceEnabled());
- assertFalse("Debug was enabled", log.isDebugEnabled());
- assertTrue("Info was not enabled", log.isInfoEnabled());
- assertTrue("Warn was not enabled", log.isWarnEnabled());
- assertTrue("Error was not enabled", log.isErrorEnabled());
- assertTrue("Fatal was not enabled", log.isFatalEnabled());
- }
-
- private void assertFalse(String failureMessage, boolean value) {
- if (value) {
- throw new IllegalStateException(failureMessage);
- }
- }
-
- private void assertTrue(String failureMessage, boolean value) {
- if (!value) {
- throw new IllegalStateException(failureMessage);
- }
- }
-
- public void testPrintAPI() {
- Log log = LogFactory.getLog(CommonsLoggingTester.class);
- Exception e = new Exception("just testing");
-
- log.trace(null);
- log.trace("trace message");
-
- log.debug(null);
- log.debug("debug message");
-
- log.info(null);
- log.info("info message");
-
- log.warn(null);
- log.warn("warn message");
-
- log.error(null);
- log.error("error message");
-
- log.fatal(null);
- log.fatal("fatal message");
-
- log.trace(null, e);
- log.trace("trace message", e);
-
- log.debug(null, e);
- log.debug("debug message", e);
-
- log.info(null, e);
- log.info("info message", e);
-
- log.warn(null, e);
- log.warn("warn message", e);
-
- log.error(null, e);
- log.error("error message", e);
-
- log.fatal(null, e);
- log.fatal("fatal message", e);
- }
-}
diff --git a/slf4j-osgi-test-bundle/src/main/java/org/slf4j/osgi/test/ProbeImpl.java b/slf4j-osgi-test-bundle/src/main/java/org/slf4j/osgi/test/ProbeImpl.java
deleted file mode 100644
index e5ea67f..0000000
--- a/slf4j-osgi-test-bundle/src/main/java/org/slf4j/osgi/test/ProbeImpl.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright (c) 2004-2005 SLF4J.ORG
- *
- * 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, and/or sell copies of the Software, and to permit persons
- * to whom the Software is furnished to do so, provided that the above
- * copyright notice(s) and this permission notice appear in all copies of
- * the Software and that both the above copyright notice(s) and this
- * permission notice appear in supporting documentation.
- *
- * 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
- * OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
- * HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY
- * SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER
- * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
- * CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
- * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- * Except as contained in this notice, the name of a copyright holder
- * shall not be used in advertising or otherwise to promote the sale, use
- * or other dealings in this Software without prior written authorization
- * of the copyright holder.
- *
- */
-
-package org.slf4j.osgi.test;
-
-import org.slf4j.osgi.test.service.Probe;
-
-/**
- * <code>ProbeImpl</code> a simple implementation of the Probe interface for testing
- * Slf4j components.
- *
- * @author John Conlon
- */
-public class ProbeImpl implements Probe{
-
- /**
- *
- * @throws ClassNotFoundException If there is not a bundle exporting
- * the org.apache.commons.logging package
- *
- */
- public boolean testCommonslogging() throws Exception{
- return new CommonsLoggingTester().testCommonslogging();
- }
-
-}
diff --git a/slf4j-osgi-test-bundle/src/main/java/org/slf4j/osgi/test/service/Probe.java b/slf4j-osgi-test-bundle/src/main/java/org/slf4j/osgi/test/service/Probe.java
deleted file mode 100644
index 1229d2e..0000000
--- a/slf4j-osgi-test-bundle/src/main/java/org/slf4j/osgi/test/service/Probe.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright (c) 2004-2005 SLF4J.ORG
- *
- * 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, and/or sell copies of the Software, and to permit persons
- * to whom the Software is furnished to do so, provided that the above
- * copyright notice(s) and this permission notice appear in all copies of
- * the Software and that both the above copyright notice(s) and this
- * permission notice appear in supporting documentation.
- *
- * 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
- * OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
- * HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY
- * SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER
- * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
- * CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
- * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- * Except as contained in this notice, the name of a copyright holder
- * shall not be used in advertising or otherwise to promote the sale, use
- * or other dealings in this Software without prior written authorization
- * of the copyright holder.
- *
- */
-
-package org.slf4j.osgi.test.service;
-
-/**
- * <code>Probe</code> is a service for testing accessibility of
- * Slf4j components from the test bundle.
- *
- * @author John Conlon
- * @version $Rev$, $Date$
- */
-public interface Probe {
-
- /**
- *
- * testCommonslogging
- *
- * @return true if all the tests were executed.
- * @throws ClassNotFoundError if a org.apache.commons.logging package
- * could not be dynamically imported from the OSGi runtime.
- * @throws Exception if testing fails
- */
- boolean testCommonslogging() throws Exception;
-
-}
diff --git a/slf4j-scala-api/pom.xml b/slf4j-scala-api/pom.xml
deleted file mode 100644
index 8ba7134..0000000
--- a/slf4j-scala-api/pom.xml
+++ /dev/null
@@ -1,201 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
- <parent>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-parent</artifactId>
- <version>1.6.2-SNAPSHOT</version>
- </parent>
-
- <modelVersion>4.0.0</modelVersion>
-
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-scala-api</artifactId>
- <packaging>bundle</packaging>
- <name>SLF4J Scala API Module</name>
-
- <url>http://www.slf4j.org</url>
- <description>The slf4j Scala API</description>
-
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <scala.version>2.8.0</scala.version>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- </dependency>
- <dependency>
- <groupId>org.scala-lang</groupId>
- <artifactId>scala-library</artifactId>
- <version>${scala.version}</version>
- </dependency>
- <dependency>
- <groupId>org.scala-tools.testing</groupId>
- <artifactId>specs_2.8.0</artifactId>
- <version>1.6.5</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-all</artifactId>
- <version>1.8.4</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.7</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-simple</artifactId>
- <version>${project.version}</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
-
- <plugin>
- <groupId>org.scala-tools</groupId>
- <artifactId>maven-scala-plugin</artifactId>
- <version>2.14.1</version>
- <configuration>
- <scalaVersion>${scala.version}</scalaVersion>
- <charset>${project.build.sourceEncoding}</charset>
- <jvmArgs>
- <jvmArg>-Xmx1024m</jvmArg>
- </jvmArgs>
- <args>
- <arg>-make:changed</arg>
- <arg>-deprecation</arg>
- <arg>-unchecked</arg>
- </args>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>compile</goal>
- <goal>testCompile</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
-
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.4.3</version>
- <configuration>
- <includes>
- <include>**/*Spec.java</include>
- <include>**/*Test.java</include>
- </includes>
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <version>2.1.0</version>
- <extensions>true</extensions>
- <!--executions>
- <execution>
- <goals>
- <goal>bundle</goal>
- </goals>
- </execution>
- </executions-->
- <configuration>
- <instructions>
- <Bundle-RequiredExecutionEnvironment>J2SE-1.5,JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
- <Export-Package>org.slf4j.scala.*;version="${project.version}"</Export-Package>
- <Import-Package>
- scala.*;version="[${scala.version},${scala.version}]",
- *
- </Import-Package>
- <_versionpolicy>[$(@),$(version;=+;$(@)))</_versionpolicy>
- </instructions>
- </configuration>
- </plugin>
-
- <!--plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <forkMode>once</forkMode>
- <reportFormat>plain</reportFormat>
- <trimStackTrace>false</trimStackTrace>
- <excludes>
- <exclude>**/AllTest.java</exclude>
- <exclude>**/PackageTest.java</exclude>
- </excludes>
- </configuration>
- </plugin-->
-
- <!--plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <configuration>
- <archive>
- <manifestEntries>
- <Bundle-Version>${parsedVersion.osgiVersion}</Bundle-Version>
- <Bundle-Description>${project.description}</Bundle-Description>
- <Implementation-Version>${project.version}</Implementation-Version>
- </manifestEntries>
- <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
- </archive>
- </configuration>
- <executions>
- <execution>
- <id>bundle-test-jar</id>
- <phase>package</phase>
- <goals>
- <goal>jar</goal>
- <goal>test-jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin-->
-
- <!--plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <phase>process-classes</phase>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <tasks>
- <echo>Removing slf4j-api's dummy StaticLoggerBinder and StaticMarkerBinder</echo>
- <delete dir="target/classes/org/slf4j/impl"/>
- </tasks>
- </configuration>
- </plugin-->
-
- </plugins>
-
- </build>
-
- <reporting>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>clirr-maven-plugin</artifactId>
- <configuration>
- <comparisonVersion>1.5.6</comparisonVersion>
- </configuration>
- </plugin>
- </plugins>
- </reporting>
-
-</project>
\ No newline at end of file
diff --git a/slf4j-scala-api/src/main/scala/Logging.scala b/slf4j-scala-api/src/main/scala/Logging.scala
deleted file mode 100644
index a67c717..0000000
--- a/slf4j-scala-api/src/main/scala/Logging.scala
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright (c) 2010 Weigle Wilczek GmbH
- * 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.scala
-
-import org.slf4j.LoggerFactory
-
-/**
- * Mixin providing a Logger for the type mixed into.
- */
-trait Logging {
-
- /**
- * Logger for the type mixed into.
- */
- protected[scala] lazy val logger = Logger(this.getClass)
-}
diff --git a/slf4j-scala-api/src/main/scala/logger.scala b/slf4j-scala-api/src/main/scala/logger.scala
deleted file mode 100644
index 1503e95..0000000
--- a/slf4j-scala-api/src/main/scala/logger.scala
+++ /dev/null
@@ -1,153 +0,0 @@
-/*
- * Copyright (c) 2010 Weigle Wilczek GmbH
- * 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.scala
-
-import org.slf4j.{ Logger => SLF4JLogger, LoggerFactory }
-
-/**
- * Factory for Loggers.
- */
-object Logger {
-
- /**
- * Creates a Logger named corresponding to the given class.
- * @param clazz Class used for the Logger's name. Must not be null!
- */
- def apply(clazz: Class[_]) = {
- require(clazz != null, "clazz must not be null!")
- new DefaultLogger(LoggerFactory getLogger clazz)
- }
-
- /**
- * Creates a Logger with the given name.
- * @param name The Logger's name. Must not be null!
- */
- def apply(name: String) = {
- require(name != null, "loggerName must not be null!")
- new DefaultLogger(LoggerFactory getLogger name)
- }
-}
-
-/**
- * Thin wrapper for SLF4J making use of by-name parameters to improve performance.
- */
-trait Logger {
-
- /**
- * The name of this Logger.
- */
- lazy val name = slf4jLogger.getName
-
- /**
- * Log a message with ERROR level.
- * @param msg The message to be logged
- */
- def error(msg: => String) {
- if (slf4jLogger.isErrorEnabled) slf4jLogger error msg
- }
-
- /**
- * Log a message with ERROR level.
- * @param msg The message to be logged
- * @param t The Throwable to be logged
- */
- def error(msg: => String, t: Throwable) {
- if (slf4jLogger.isErrorEnabled) slf4jLogger.error(msg, t)
- }
-
- /**
- * Log a message with WARN level.
- * @param msg The message to be logged
- */
- def warn(msg: => String) {
- if (slf4jLogger.isWarnEnabled) slf4jLogger warn msg
- }
-
- /**
- * Log a message with WARN level.
- * @param msg The message to be logged
- * @param t The Throwable to be logged
- */
- def warn(msg: => String, t: Throwable) {
- if (slf4jLogger.isWarnEnabled) slf4jLogger.warn(msg, t)
- }
-
- /**
- * Log a message with INFO level.
- * @param msg The message to be logged
- */
- def info(msg: => String) {
- if (slf4jLogger.isInfoEnabled) slf4jLogger info msg
- }
-
- /**
- * Log a message with INFO level.
- * @param msg The message to be logged
- * @param t The Throwable to be logged
- */
- def info(msg: => String, t: Throwable) {
- if (slf4jLogger.isInfoEnabled) slf4jLogger.info(msg, t)
- }
-
- /**
- * Log a message with DEBUG level.
- * @param msg The message to be logged
- */
- def debug(msg: => String) {
- if (slf4jLogger.isDebugEnabled) slf4jLogger debug msg
- }
-
- /**
- * Log a message with DEBUG level.
- * @param msg The message to be logged
- * @param t The Throwable to be logged
- */
- def debug(msg: => String, t: Throwable) {
- if (slf4jLogger.isDebugEnabled) slf4jLogger.debug(msg, t)
- }
-
- /**
- * Log a message with TRACE level.
- * @param msg The message to be logged
- */
- def trace(msg: => String) {
- if (slf4jLogger.isTraceEnabled) slf4jLogger trace msg
- }
-
- /**
- * Log a message with TRACE level.
- * @param msg The message to be logged
- * @param t The Throwable to be logged
- */
- def trace(msg: => String, t: Throwable) {
- if (slf4jLogger.isTraceEnabled) slf4jLogger.trace(msg, t)
- }
-
- /**
- * The wrapped SLF4J Logger.
- */
- protected val slf4jLogger: SLF4JLogger
-}
-
-private[scala] class DefaultLogger(override protected val slf4jLogger: SLF4JLogger) extends Logger
diff --git a/slf4j-scala-api/src/test/scala/LoggerSpec.scala b/slf4j-scala-api/src/test/scala/LoggerSpec.scala
deleted file mode 100644
index e48fd13..0000000
--- a/slf4j-scala-api/src/test/scala/LoggerSpec.scala
+++ /dev/null
@@ -1,297 +0,0 @@
-/*
- * Copyright (c) 2010 Weigle Wilczek GmbH
- * 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.scala
-
-import org.slf4j.{ Logger => SLF4JLogger }
-import org.specs.SpecificationWithJUnit
-import org.specs.mock.Mockito
-
-class LoggerSpec extends SpecificationWithJUnit with Mockito {
-
- "Creating a Logger using Logger(clazz: Class[_])" should {
-
- "return a Logger namend like the given class" in {
- val clazz = classOf[String]
- Logger(clazz).name mustEqual clazz.getName
- }
-
- "throw an IAE when creating a Logger with a null class" in {
- Logger(null: Class[_]) must throwA[IllegalArgumentException]
- }
- }
-
- "Creating a Logger using Logger(name: String)" should {
-
- "return a Logger namend like the given name" in {
- val name = "MyLogger"
- Logger(name).name mustEqual name
- }
-
- "throw an IAE when creating a Logger with a null String" in {
- Logger(null: String) must throwA [IllegalArgumentException]
- }
- }
-
- "Calling Logger.error(msg)" should {
- val (logger, slf4jLogger) = loggers
- var evaluated = false
- def msg = {
- evaluated = true
- Msg
- }
-
- "not call SLF4JLogger.error when error not enabled" in {
- slf4jLogger.isErrorEnabled returns false
- logger error msg
- there was no(slf4jLogger).error(Msg)
- evaluated mustBe false
- }
-
- "call SLF4JLogger.error when error enabled" in {
- slf4jLogger.isErrorEnabled returns true
- logger error msg
- there was one(slf4jLogger).error(Msg)
- evaluated mustBe true
- }
- }
-
- "Calling Logger.error(msg, t)" should {
- val (logger, slf4jLogger) = loggers
- var evaluated = false
- def msg = {
- evaluated = true
- Msg
- }
-
- "not call SLF4JLogger.error when error not enabled" in {
- slf4jLogger.isErrorEnabled returns false
- logger.error(msg, t)
- there was no(slf4jLogger).error(Msg, t)
- evaluated mustBe false
- }
-
- "call SLF4JLogger.error when error enabled" in {
- slf4jLogger.isErrorEnabled returns true
- logger.error(msg, t)
- there was one(slf4jLogger).error(Msg ,t)
- evaluated mustBe true
- }
- }
-
- "Calling Logger.warn(msg)" should {
- val (logger, slf4jLogger) = loggers
- var evaluated = false
- def msg = {
- evaluated = true
- Msg
- }
-
- "not call SLF4JLogger.warn when warn not enabled" in {
- slf4jLogger.isWarnEnabled returns false
- logger warn msg
- there was no(slf4jLogger).warn(Msg)
- evaluated mustBe false
- }
-
- "call SLF4JLogger.warn when warn enabled" in {
- slf4jLogger.isWarnEnabled returns true
- logger warn msg
- there was one(slf4jLogger).warn(Msg)
- evaluated mustBe true
- }
- }
-
- "Calling Logger.warn(msg, t)" should {
- val (logger, slf4jLogger) = loggers
- var evaluated = false
- def msg = {
- evaluated = true
- Msg
- }
-
- "not call SLF4JLogger.warn when warn not enabled" in {
- slf4jLogger.isErrorEnabled returns false
- logger.warn(msg, t)
- there was no(slf4jLogger).warn(Msg, t)
- evaluated mustBe false
- }
-
- "call SLF4JLogger.warn when warn enabled" in {
- slf4jLogger.isWarnEnabled returns true
- logger.warn(msg, t)
- there was one(slf4jLogger).warn(Msg ,t)
- evaluated mustBe true
- }
- }
-
- "Calling Logger.info(msg)" should {
- val (logger, slf4jLogger) = loggers
- var evaluated = false
- def msg = {
- evaluated = true
- Msg
- }
-
- "not call SLF4JLogger.info when info not enabled" in {
- slf4jLogger.isInfoEnabled returns false
- logger info msg
- there was no(slf4jLogger).info(Msg)
- evaluated mustBe false
- }
-
- "call SLF4JLogger.info when info enabled" in {
- slf4jLogger.isInfoEnabled returns true
- logger info msg
- there was one(slf4jLogger).info(Msg)
- evaluated mustBe true
- }
- }
-
- "Calling Logger.info(msg, t)" should {
- val (logger, slf4jLogger) = loggers
- var evaluated = false
- def msg = {
- evaluated = true
- Msg
- }
-
- "not call SLF4JLogger.info when info not enabled" in {
- slf4jLogger.isInfoEnabled returns false
- logger.info(msg, t)
- there was no(slf4jLogger).info(Msg, t)
- evaluated mustBe false
- }
-
- "call SLF4JLogger.info when info enabled" in {
- slf4jLogger.isInfoEnabled returns true
- logger.info(msg, t)
- there was one(slf4jLogger).info(Msg, t)
- evaluated mustBe true
- }
- }
-
- "Calling Logger.debug(msg)" should {
- val (logger, slf4jLogger) = loggers
- var evaluated = false
- def msg = {
- evaluated = true
- Msg
- }
-
- "not call SLF4JLogger.debug when debug not enabled" in {
- slf4jLogger.isDebugEnabled returns false
- logger debug msg
- there was no(slf4jLogger).debug(Msg)
- evaluated mustBe false
- }
-
- "call SLF4JLogger.debug when debug enabled" in {
- slf4jLogger.isDebugEnabled returns true
- logger debug msg
- there was one(slf4jLogger).debug(Msg)
- evaluated mustBe true
- }
- }
-
- "Calling Logger.debug(msg ,t)" should {
- val (logger, slf4jLogger) = loggers
- var evaluated = false
- def msg = {
- evaluated = true
- Msg
- }
-
- "not call SLF4JLogger.debug when debug not enabled" in {
- slf4jLogger.isDebugEnabled returns false
- logger.debug(msg, t)
- there was no(slf4jLogger).debug(Msg, t)
- evaluated mustBe false
- }
-
- "call SLF4JLogger.debug when debug enabled" in {
- slf4jLogger.isDebugEnabled returns true
- logger.debug(msg, t)
- there was one(slf4jLogger).debug(Msg, t)
- evaluated mustBe true
- }
- }
-
- "Calling Logger.trace(msg)" should {
- val (logger, slf4jLogger) = loggers
- var evaluated = false
- def msg = {
- evaluated = true
- Msg
- }
-
- "not call SLF4JLogger.trace when trace not enabled" in {
- slf4jLogger.isTraceEnabled returns false
- logger trace msg
- there was no(slf4jLogger).trace(Msg)
- evaluated mustBe false
- }
-
- "call SLF4JLogger.trace when trace enabled" in {
- slf4jLogger.isTraceEnabled returns true
- logger trace msg
- there was one(slf4jLogger).trace(Msg)
- evaluated mustBe true
- }
- }
-
- "Calling Logger.trace(msg, t)" should {
- val (logger, slf4jLogger) = loggers
- var evaluated = false
- def msg = {
- evaluated = true
- Msg
- }
-
- "not call SLF4JLogger.trace when trace not enabled" in {
- slf4jLogger.isTraceEnabled returns false
- logger.trace(msg, t)
- there was no(slf4jLogger).trace(Msg, t)
- evaluated mustBe false
- }
-
- "call SLF4JLogger.trace when trace enabled" in {
- slf4jLogger.isTraceEnabled returns true
- logger.trace(msg, t)
- there was one(slf4jLogger).trace(Msg, t)
- evaluated mustBe true
- }
- }
-
- private lazy val Msg = "MESSAGE"
-
- private lazy val t = new Throwable
-
- private def loggers = {
- val mockSLF4JLogger = mock[SLF4JLogger]
- val logger = new Logger {
- override protected val slf4jLogger = mockSLF4JLogger
- }
- (logger, mockSLF4JLogger)
- }
-}
diff --git a/slf4j-scala-api/src/test/scala/LoggingSpec.scala b/slf4j-scala-api/src/test/scala/LoggingSpec.scala
deleted file mode 100644
index b4599e0..0000000
--- a/slf4j-scala-api/src/test/scala/LoggingSpec.scala
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (c) 2010 Weigle Wilczek GmbH
- * 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.scala
-
-import org.specs.SpecificationWithJUnit
-
-class LoggingSpec extends SpecificationWithJUnit {
-
- "Mixing Logging into SomeClass" should {
- "yield a Logger named to SomeClass's FQCN" in {
- val someClass = new SomeClass
- someClass.logger.name mustEqual classOf[SomeClass].getName
- }
- }
-}
-
-class SomeClass extends Logging
diff --git a/slf4j-simple/pom.xml b/slf4j-simple/pom.xml
index 059336a..adf2eff 100644
--- a/slf4j-simple/pom.xml
+++ b/slf4j-simple/pom.xml
@@ -4,7 +4,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.6.7-SNAPSHOT</version>
+ <version>1.7.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/slf4j-simple/src/main/java/org/slf4j/impl/SimpleLogger.java b/slf4j-simple/src/main/java/org/slf4j/impl/SimpleLogger.java
index a8587a8..05d7e75 100644
--- a/slf4j-simple/src/main/java/org/slf4j/impl/SimpleLogger.java
+++ b/slf4j-simple/src/main/java/org/slf4j/impl/SimpleLogger.java
@@ -1,25 +1,25 @@
-/**
- * Copyright (c) 2004-2011 QOS.ch
+/**
+ * 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.
+ * 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.
+ * 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.
*
*/
@@ -364,8 +364,8 @@ public class SimpleLogger extends MarkerIgnoringBase {
*
* @param level
* @param format
- * @param param1
- * @param param2
+ * @param arg1
+ * @param arg2
*/
private void formatAndLog(int level, String format, Object arg1,
Object arg2) {
@@ -381,13 +381,13 @@ public class SimpleLogger extends MarkerIgnoringBase {
*
* @param level
* @param format
- * @param argArray
+ * @param arguments a list of 3 ore more arguments
*/
- private void formatAndLog(int level, String format, Object[] argArray) {
+ private void formatAndLog(int level, String format, Object... arguments) {
if (! isLevelEnabled(level)) {
return;
}
- FormattingTuple tp = MessageFormatter.arrayFormat(format, argArray);
+ FormattingTuple tp = MessageFormatter.arrayFormat(format, arguments);
log(level, tp.getMessage(), tp.getThrowable());
}
diff --git a/slf4j-simple/src/main/java/org/slf4j/impl/StaticLoggerBinder.java b/slf4j-simple/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
index d39a4fe..28980a9 100644
--- a/slf4j-simple/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
+++ b/slf4j-simple/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
@@ -58,7 +58,7 @@ public class StaticLoggerBinder implements LoggerFactoryBinder {
* against. The value of this field is usually modified with each release.
*/
// to avoid constant folding by the compiler, this field must *not* be final
- public static String REQUESTED_API_VERSION = "1.6"; // !final
+ public static String REQUESTED_API_VERSION = "1.7"; // !final
private static final String loggerFactoryClassStr = SimpleLoggerFactory.class.getName();
diff --git a/slf4j-site/pom.xml b/slf4j-site/pom.xml
index ed14fc9..4418586 100644
--- a/slf4j-site/pom.xml
+++ b/slf4j-site/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
- <version>1.6.7-SNAPSHOT</version>
+ <version>1.7.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/slf4j.composite b/slf4j.composite
deleted file mode 100644
index 07f98f6..0000000
--- a/slf4j.composite
+++ /dev/null
@@ -1,4 +0,0 @@
-scan-bundle:file:slf4j-api/target/slf4j-api-1.6.2-SNAPSHOT.jar
-scan-bundle:file:slf4j-simple/target/slf4j-simple-1.6.2-SNAPSHOT.jar
-scan-bundle:file:slf4j-scala-api/target/slf4j-scala-api-1.6.2-SNAPSHOT.jar
-scan-bundle:mvn:http://scala-tools.org/repo-releases!com.weiglewilczek.scala-lang-osgi/scala-library/2.8.0
-----------------------------------------------------------------------
Summary of changes:
integration/pom.xml | 18 +-
jcl-over-slf4j/pom.xml | 22 +--
jul-to-slf4j/pom.xml | 2 +-
log4j-over-slf4j/pom.xml | 2 +-
pom.xml | 11 +-
slf4j-api/pom.xml | 2 +-
slf4j-api/src/main/java/org/slf4j/Logger.java | 48 ++--
.../src/main/java/org/slf4j/LoggerFactory.java | 2 +-
.../java/org/slf4j/helpers/MarkerIgnoringBase.java | 20 +-
.../java/org/slf4j/impl/StaticLoggerBinder.java | 2 +-
slf4j-ext/pom.xml | 2 +-
slf4j-jcl/pom.xml | 2 +-
.../main/java/org/slf4j/impl/JCLLoggerAdapter.java | 30 +-
.../java/org/slf4j/impl/StaticLoggerBinder.java | 2 +-
slf4j-jdk14/pom.xml | 12 +-
.../java/org/slf4j/impl/JDK14LoggerAdapter.java | 14 +-
.../java/org/slf4j/impl/StaticLoggerBinder.java | 2 +-
slf4j-log4j12/pom.xml | 2 +-
.../java/org/slf4j/impl/Log4jLoggerAdapter.java | 19 +-
.../java/org/slf4j/impl/StaticLoggerBinder.java | 2 +-
slf4j-migrator/pom.xml | 2 +-
slf4j-nop/pom.xml | 2 +-
.../java/org/slf4j/impl/StaticLoggerBinder.java | 2 +-
slf4j-osgi-integration-test/pom.xml | 241 ----------------
.../osgi/integration/IntegrationTestConstants.java | 78 -----
.../osgi/integration/jdk/test/JdkBundleTest.java | 176 ------------
.../integration/log4j/test/Log4JBundleTest.java | 181 ------------
.../logservice/test/LogServiceBundleTest.java | 188 -------------
.../osgi/integration/nop/test/NopBundleTest.java | 174 ------------
.../integration/simple/test/SimpleBundleTest.java | 177 ------------
.../src/test/resources/log4j.properties | 9 -
.../slf4j/osgi/integration/jdk/test/MANIFEST.MF | 14 -
.../slf4j/osgi/integration/log4j/test/MANIFEST.MF | 14 -
.../osgi/integration/logservice/test/MANIFEST.MF | 15 -
.../slf4j/osgi/integration/nop/test/MANIFEST.MF | 14 -
.../slf4j/osgi/integration/simple/test/MANIFEST.MF | 14 -
slf4j-osgi-test-bundle/pom.xml | 76 -----
.../main/java/org/slf4j/osgi/test/Activator.java | 184 ------------
.../org/slf4j/osgi/test/CommonsLoggingTester.java | 114 --------
.../main/java/org/slf4j/osgi/test/ProbeImpl.java | 55 ----
.../java/org/slf4j/osgi/test/service/Probe.java | 55 ----
slf4j-scala-api/pom.xml | 201 -------------
slf4j-scala-api/src/main/scala/Logging.scala | 37 ---
slf4j-scala-api/src/main/scala/logger.scala | 153 ----------
slf4j-scala-api/src/test/scala/LoggerSpec.scala | 297 --------------------
slf4j-scala-api/src/test/scala/LoggingSpec.scala | 38 ---
slf4j-simple/pom.xml | 2 +-
.../src/main/java/org/slf4j/impl/SimpleLogger.java | 36 ++--
.../java/org/slf4j/impl/StaticLoggerBinder.java | 2 +-
slf4j-site/pom.xml | 2 +-
slf4j.composite | 4 -
51 files changed, 116 insertions(+), 2657 deletions(-)
delete mode 100644 slf4j-osgi-integration-test/pom.xml
delete mode 100644 slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/IntegrationTestConstants.java
delete mode 100644 slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/jdk/test/JdkBundleTest.java
delete mode 100644 slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/log4j/test/Log4JBundleTest.java
delete mode 100644 slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/logservice/test/LogServiceBundleTest.java
delete mode 100644 slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/nop/test/NopBundleTest.java
delete mode 100644 slf4j-osgi-integration-test/src/test/java/org/slf4j/osgi/integration/simple/test/SimpleBundleTest.java
delete mode 100644 slf4j-osgi-integration-test/src/test/resources/log4j.properties
delete mode 100644 slf4j-osgi-integration-test/src/test/resources/org/slf4j/osgi/integration/jdk/test/MANIFEST.MF
delete mode 100644 slf4j-osgi-integration-test/src/test/resources/org/slf4j/osgi/integration/log4j/test/MANIFEST.MF
delete mode 100644 slf4j-osgi-integration-test/src/test/resources/org/slf4j/osgi/integration/logservice/test/MANIFEST.MF
delete mode 100644 slf4j-osgi-integration-test/src/test/resources/org/slf4j/osgi/integration/nop/test/MANIFEST.MF
delete mode 100644 slf4j-osgi-integration-test/src/test/resources/org/slf4j/osgi/integration/simple/test/MANIFEST.MF
delete mode 100644 slf4j-osgi-test-bundle/pom.xml
delete mode 100644 slf4j-osgi-test-bundle/src/main/java/org/slf4j/osgi/test/Activator.java
delete mode 100644 slf4j-osgi-test-bundle/src/main/java/org/slf4j/osgi/test/CommonsLoggingTester.java
delete mode 100644 slf4j-osgi-test-bundle/src/main/java/org/slf4j/osgi/test/ProbeImpl.java
delete mode 100644 slf4j-osgi-test-bundle/src/main/java/org/slf4j/osgi/test/service/Probe.java
delete mode 100644 slf4j-scala-api/pom.xml
delete mode 100644 slf4j-scala-api/src/main/scala/Logging.scala
delete mode 100644 slf4j-scala-api/src/main/scala/logger.scala
delete mode 100644 slf4j-scala-api/src/test/scala/LoggerSpec.scala
delete mode 100644 slf4j-scala-api/src/test/scala/LoggingSpec.scala
delete mode 100644 slf4j.composite
hooks/post-receive
--
SLF4J: Simple Logging Facade for Java
1
0

[GIT] SLF4J: Simple Logging Facade for Java branch master updated. v_1.6.6-15-g370eca4
by git-noreply@pixie.qos.ch 06 Sep '12
by git-noreply@pixie.qos.ch 06 Sep '12
06 Sep '12
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "SLF4J: Simple Logging Facade for Java".
The branch, master has been updated
via 370eca42fbaa403cabdd19353c4b05f756cf5677 (commit)
from 993e6b34079ee96cf188e966ed2fd1f78f4be3d0 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.qos.ch/gitweb/?p=slf4j.git;a=commit;h=370eca42fbaa403cabdd19353c…
http://github.com/ceki/slf4j/commit/370eca42fbaa403cabdd19353c4b05f756cf5677
commit 370eca42fbaa403cabdd19353c4b05f756cf5677
Author: Ceki Gulcu <ceki(a)qos.ch>
Date: Thu Sep 6 14:36:32 2012 +0200
fix bug 270
diff --git a/slf4j-api/src/main/java/org/slf4j/helpers/MessageFormatter.java b/slf4j-api/src/main/java/org/slf4j/helpers/MessageFormatter.java
index 3bb9bc2..fc794e2 100644
--- a/slf4j-api/src/main/java/org/slf4j/helpers/MessageFormatter.java
+++ b/slf4j-api/src/main/java/org/slf4j/helpers/MessageFormatter.java
@@ -29,7 +29,7 @@ import java.util.HashMap;
import java.util.Map;
// contributors: lizongbo: proposed special treatment of array parameter values
-// Jörn Huxhorn: pointed out double[] omission, suggested deep array copy
+// Joern Huxhorn: pointed out double[] omission, suggested deep array copy
/**
* Formats messages according to very simple substitution rules. Substitutions
* can be made 1, 2 or more arguments.
-----------------------------------------------------------------------
Summary of changes:
.../java/org/slf4j/helpers/MessageFormatter.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
hooks/post-receive
--
SLF4J: Simple Logging Facade for Java
1
0
Branch: refs/heads/master
Home: https://github.com/qos-ch/slf4j
Commit: 370eca42fbaa403cabdd19353c4b05f756cf5677
https://github.com/qos-ch/slf4j/commit/370eca42fbaa403cabdd19353c4b05f756cf…
Author: Ceki Gulcu <ceki(a)qos.ch>
Date: 2012-09-06 (Thu, 06 Sep 2012)
Changed paths:
M slf4j-api/src/main/java/org/slf4j/helpers/MessageFormatter.java
Log Message:
-----------
fix bug 270
1
0

[GIT] SLF4J: Simple Logging Facade for Java branch master updated. v_1.6.6-14-g993e6b3
by git-noreply@pixie.qos.ch 29 Aug '12
by git-noreply@pixie.qos.ch 29 Aug '12
29 Aug '12
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "SLF4J: Simple Logging Facade for Java".
The branch, master has been updated
via 993e6b34079ee96cf188e966ed2fd1f78f4be3d0 (commit)
from 0b68150048e745409d0f19463c36c443f7eaf4ae (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.qos.ch/gitweb/?p=slf4j.git;a=commit;h=993e6b34079ee96cf188e966ed…
http://github.com/ceki/slf4j/commit/993e6b34079ee96cf188e966ed2fd1f78f4be3d0
commit 993e6b34079ee96cf188e966ed2fd1f78f4be3d0
Author: Ceki Gulcu <ceki(a)qos.ch>
Date: Wed Aug 29 15:10:47 2012 +0200
remove link to ohloh counter
diff --git a/slf4j-site/src/site/pages/templates/footer.js b/slf4j-site/src/site/pages/templates/footer.js
index db27372..b6817a9 100644
--- a/slf4j-site/src/site/pages/templates/footer.js
+++ b/slf4j-site/src/site/pages/templates/footer.js
@@ -4,10 +4,6 @@ document.write('<table class="footer" border="0">')
document.write('<tr>')
document.write(' <td valign="top" align="left">Copyright © 2004-2012 <a href="http://www.qos.ch/">QOS.ch</a></td>')
-
-document.write(' <td align="right" rowspan="2">')
-document.write(' <script type="text/javascript" src="http://www.ohloh.net/p/11217/widgets/project_users.js"></script>')
-document.write(' </td>')
document.write('</tr>')
AAT = '@'
@@ -16,7 +12,6 @@ document.write('<tr>')
document.write('<td align="left" colspan="1">')
document.write('We are actively looking for volunteers to proofread the documentation. Please send your corrections or suggestions for improvement to "corrections' + AAT +'qos'+DOOTT+'ch". See also the <a href="http://articles.qos.ch/contributing.html">instructions for contributors</a>.');
document.write('</td>')
-document.write(' <td> </td>')
document.write('</tr>')
-----------------------------------------------------------------------
Summary of changes:
slf4j-site/src/site/pages/templates/footer.js | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
hooks/post-receive
--
SLF4J: Simple Logging Facade for Java
1
0