preparing release 1.7.1

This commit is contained in:
Ceki Gulcu 2012-09-14 23:00:20 +02:00
parent 85083caf99
commit 86e0c2990d
18 changed files with 33 additions and 22 deletions

View File

@ -6,7 +6,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
<version>1.7.1-SNAPSHOT</version>
<version>1.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -4,7 +4,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
<version>1.7.1-SNAPSHOT</version>
<version>1.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -6,7 +6,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
<version>1.7.1-SNAPSHOT</version>
<version>1.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
<version>1.7.1-SNAPSHOT</version>
<version>1.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -3,7 +3,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
<version>1.7.1-SNAPSHOT</version>
<version>1.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -7,7 +7,7 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
<version>1.7.1-SNAPSHOT</version>
<version>1.7.1</version>
<packaging>pom</packaging>
<name>SLF4J</name>

View File

@ -5,7 +5,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
<version>1.7.1-SNAPSHOT</version>
<version>1.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
<version>1.7.1-SNAPSHOT</version>
<version>1.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -3,7 +3,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
<version>1.7.1-SNAPSHOT</version>
<version>1.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -6,7 +6,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
<version>1.7.1-SNAPSHOT</version>
<version>1.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -6,7 +6,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
<version>1.7.1-SNAPSHOT</version>
<version>1.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
<version>1.7.1-SNAPSHOT</version>
<version>1.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -6,7 +6,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
<version>1.7.1-SNAPSHOT</version>
<version>1.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -4,7 +4,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
<version>1.7.1-SNAPSHOT</version>
<version>1.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -54,9 +54,11 @@ import org.slf4j.spi.LocationAwareLogger;
* <li><code>org.slf4j.simpleLogger.defaultLogLevel</code> - Default log level for all instances of SimpleLogger.
* Must be one of ("trace", "debug", "info", "warn", or "error"). If not specified, defaults to "info". </li>
*
* <li><code>org.slf4j.simpleLogger.log.xxxxx</code> - Logging detail level for a SimpleLogger instance named "xxxxx".
* Must be one of ("trace", "debug", "info", "warn", or "error"). If not specified, the level the nearest parent logger
* will be used, and if none is set, then the default level will be used.</li>
* <li><code>org.slf4j.simpleLogger.log.<em>a.b.c</em></code> - Logging detail level for a SimpleLogger instance
* named "a.b.c". Right-side value must be one of "trace", "debug", "info", "warn", or "error". When a SimpleLogger
* named "a.b.c" is initialized, its level is assigned from this property. If unspecified, the level of nearest parent
* logger will be used, and if none is set, then the value specified by
* <code>org.slf4j.simpleLogger.defaultLogLevel</code> will be used.</li>
*
* <li><code>org.slf4j.simpleLogger.showDateTime</code> - Set to <code>true</code> if you want the current date and
* time to be included in output messages. Default is <code>true</code></li>

View File

@ -30,6 +30,7 @@ import org.junit.Test;
import static junit.framework.Assert.assertEquals;
import static junit.framework.Assert.assertNull;
import static junit.framework.Assert.fail;
public class SimpleLoggerTest {
@ -43,6 +44,12 @@ public class SimpleLoggerTest {
System.clearProperty(A_KEY);
}
@Test
public void emptyLoggerName() {
SimpleLogger simpleLogger = new SimpleLogger("a");
assertEquals("info", simpleLogger.recursivelyComputeLevelString());
}
@Test
public void loggerNameWithNoDots_WithLevel() {
SimpleLogger simpleLogger = new SimpleLogger("a");

View File

@ -5,7 +5,7 @@
<parent>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-parent</artifactId>
<version>1.7.1-SNAPSHOT</version>
<version>1.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -34,16 +34,18 @@
<p><a
href="apidocs/org/slf4j/impl/SimpleLogger.html"><code>SimpleLogger</code></a>
now supports writing to a file. The property names for configuring
<code>SimpleLogger</code> have been modified to be consistently all
in camel case. More configuration options have been added. In the
<code>SimpleLogger</code> have been modified to be consistently in
camel case. More configuration options have been added. In the
absence of configuration directives, <code>SimpleLogger</code> will
behave same as in the past.</p>
behave same as in the past. If you are configuring
<code>SimpleLogger</code> with configuration properties, you will
need to adapt to the new and more consistent property names.</p>
<hr noshade="noshade" size="1"/>
<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><span class="bold big green">SLF4J now requires JDK 1.5.</span></p>
<p>Printing methods in the <a
href="apidocs/org/slf4j/Logger.html">Logger</a> interface now offers