mirror of https://github.com/qos-ch/slf4j
- changes necessary for release 1.4.3
This commit is contained in:
parent
beafcf5059
commit
06866be44f
|
|
@ -3,4 +3,5 @@ VER=$1
|
|||
echo "Will use version $VER"
|
||||
|
||||
find . -name "pom.xml" |grep -v archetype-resources|xargs perl version.pl $VER
|
||||
perl version.pl $VER ./slf4j-site/src/site/site.xml
|
||||
|
||||
#perl version.pl $VER ./slf4j-site/src/site/site.xml
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-parent</artifactId>
|
||||
<version>1.4.3-SNAPSHOT</version>
|
||||
<version>1.4.3</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<parent>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-parent</artifactId>
|
||||
<version>1.4.3-SNAPSHOT</version>
|
||||
<version>1.4.3</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-parent</artifactId>
|
||||
<version>1.4.3-SNAPSHOT</version>
|
||||
<version>1.4.3</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
|||
2
pom.xml
2
pom.xml
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-parent</artifactId>
|
||||
<version>1.4.3-SNAPSHOT</version>
|
||||
<version>1.4.3</version>
|
||||
|
||||
<packaging>pom</packaging>
|
||||
<name>SLF4J</name>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<parent>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-parent</artifactId>
|
||||
<version>1.4.3-SNAPSHOT</version>
|
||||
<version>1.4.3</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<parent>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-parent</artifactId>
|
||||
<version>1.4.3-SNAPSHOT</version>
|
||||
<version>1.4.3</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-parent</artifactId>
|
||||
<version>1.4.3-SNAPSHOT</version>
|
||||
<version>1.4.3</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<parent>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-parent</artifactId>
|
||||
<version>1.4.3-SNAPSHOT</version>
|
||||
<version>1.4.3</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<parent>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-parent</artifactId>
|
||||
<version>1.4.3-SNAPSHOT</version>
|
||||
<version>1.4.3</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<parent>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-parent</artifactId>
|
||||
<version>1.4.3-SNAPSHOT</version>
|
||||
<version>1.4.3</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<parent>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-parent</artifactId>
|
||||
<version>1.4.3-SNAPSHOT</version>
|
||||
<version>1.4.3</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<parent>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-parent</artifactId>
|
||||
<version>1.4.3-SNAPSHOT</version>
|
||||
<version>1.4.3</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-parent</artifactId>
|
||||
<version>1.4.3-SNAPSHOT</version>
|
||||
<version>1.4.3</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<parent>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-parent</artifactId>
|
||||
<version>1.4.3-SNAPSHOT</version>
|
||||
<version>1.4.3</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
|||
|
|
@ -823,15 +823,7 @@ logger.debug("The new entry is {}.", entry);</p>
|
|||
it a little (as explained below) does the trick.
|
||||
</p>
|
||||
|
||||
<p>If you are a Maven2 user, you can use the
|
||||
slf4j-archetype. Invoke the following command to create a new
|
||||
module called <em>slf4j-MY</em> with much of the plumbing
|
||||
alredy in place.</p>
|
||||
|
||||
<p class="source">mvn archetype:create -DgroupId=org.slf4j -DartifactId=slf4j-MY \
|
||||
-DarchetypeGroupId=org.slf4j -DarchetypeArtifactId=slf4j-archetype -DarchetypeVersion=${project.version}</p>
|
||||
|
||||
<p>At this stage, assuming your logging system has notion of a
|
||||
<p>Assuming your logging system has notion of a
|
||||
logger, called say <code>MyLogger</code>, you need to provide
|
||||
an adapter for <code>MyLogger</code> to
|
||||
<code>org.slf4j.Logger</code> interface. Refer to slf4j-jcl,
|
||||
|
|
@ -856,14 +848,15 @@ logger.debug("The new entry is {}.", entry);</p>
|
|||
<code>loggerFactoryClassStr</code> variable.
|
||||
</p>
|
||||
|
||||
<p>That's it. You don't need to modify any other files.</p>
|
||||
<p>For Marker or MDC support, you could use the one of the
|
||||
existing NOP implementations.
|
||||
</p>
|
||||
|
||||
<p>In summary, to create an SLF4J binding for your logging
|
||||
system, follow these steps:</p>
|
||||
|
||||
<ol>
|
||||
<li>start with a copy of an existing module, or create a new
|
||||
binding using slf4j-archetype as discussed above</li>
|
||||
<li>start with a copy of an existing module,
|
||||
<li>create an adapter between your logging system and
|
||||
<code>org.slf4j.Logger</code> interface
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -37,8 +37,14 @@ prefix='';
|
|||
the correct SLF4J version.
|
||||
</p>
|
||||
|
||||
|
||||
<p>Clarified the behavior of the various methods methods in the MDC
|
||||
class with respect to "null" parameters. This was requested in <a
|
||||
href="http://bugzilla.slf4j.org/show_bug.cgi?id=58">bug 58</a> by
|
||||
Sebastian Davids.
|
||||
</p>
|
||||
|
||||
<p>Removed the slf4j-archetype module because nobody seems to have a
|
||||
use for it.</p>
|
||||
|
||||
<h3>July 12th, 2007 - Release of SLF4J 1.4.2</h3>
|
||||
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@
|
|||
</includes>
|
||||
</fileSet>
|
||||
|
||||
<!--
|
||||
<fileSet>
|
||||
<directory>slf4j-archetype/</directory>
|
||||
<outputDirectory>slf4j-archetype/</outputDirectory>
|
||||
|
|
@ -85,6 +86,7 @@
|
|||
<include>pom.xml</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
-->
|
||||
|
||||
<!-- Module Source directories (includes tests) -->
|
||||
<fileSet>
|
||||
|
|
@ -136,10 +138,12 @@
|
|||
<outputDirectory>slf4j-site/src/</outputDirectory>
|
||||
</fileSet>
|
||||
|
||||
<!--
|
||||
<fileSet>
|
||||
<directory>slf4j-archetype/src/</directory>
|
||||
<outputDirectory>slf4j-archetype/src/</outputDirectory>
|
||||
</fileSet>
|
||||
-->
|
||||
|
||||
<!-- Module JARs -->
|
||||
<fileSet>
|
||||
|
|
|
|||
Loading…
Reference in New Issue