Skip to content

Commit

Permalink
prepare release 1.4.0
Browse files Browse the repository at this point in the history
Signed-off-by: Ceki Gulcu <ceki@qos.ch>
  • Loading branch information
ceki committed Aug 28, 2022
1 parent e2c0cc6 commit e83403e
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 20 deletions.
4 changes: 1 addition & 3 deletions logback-access/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-parent</artifactId>
<version>1.4.0-SNAPSHOT</version>
<version>1.4.0</version>
</parent>

<artifactId>logback-access</artifactId>
Expand Down Expand Up @@ -78,8 +78,6 @@
<optional>true</optional>
</dependency>



</dependencies>

<build>
Expand Down
3 changes: 1 addition & 2 deletions logback-classic/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-parent</artifactId>
<version>1.4.0-SNAPSHOT</version>
<version>1.4.0</version>
</parent>

<artifactId>logback-classic</artifactId>
Expand Down Expand Up @@ -111,7 +111,6 @@
<dependency>
<groupId>com.icegreen</groupId>
<artifactId>greenmail</artifactId>
<version>2.0.0-alpha-1</version>
<scope>test</scope>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private void propagate(Logger logger, Level level) {
addInfo("Propagating " + level + " level on " + logger + " onto the JUL framework");
java.util.logging.Logger julLogger = JULHelper.asJULLogger(logger);
// prevent garbage collection of jul loggers whose level we set
// see also http://jira.qos.ch/browse/LBCLASSIC-256
// see also http://jira.qos.ch/browse//LOGBACK-404
julLoggerSet.add(julLogger);
java.util.logging.Level julLevel = JULHelper.asJULLevel(level);
julLogger.setLevel(julLevel);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThrows;
import static org.junit.Assert.*;

public class LevelChangePropagatorTest {
int rand = RandomUtil.getPositiveInt();
Expand All @@ -44,6 +43,8 @@ void checkLevelChange(String loggerName, Level level) {
assertEquals(julLevel, julLogger.getLevel());
}



@Test
public void smoke() {
checkLevelChange("a", Level.INFO);
Expand All @@ -68,6 +69,19 @@ public void gc() {
assertEquals(julLevel, julLogger.getLevel());
}

// https://jira.qos.ch/browse/LOGBACK-1612
@Test
public void jonathan() {
Level level = Level.INFO;
Logger logger = loggerContext.getLogger("aaa");
logger.setLevel(level);

java.util.logging.Logger julLogger = JULHelper.asJULLogger(logger);
java.util.logging.Level julLevel = JULHelper.asJULLevel(level);

assertFalse(julLogger.isLoggable(java.util.logging.Level.CONFIG));
}

@Test
public void julHelperAsJulLevelRejectsNull() {
Exception e = assertThrows(IllegalArgumentException.class, () -> {
Expand Down
11 changes: 2 additions & 9 deletions logback-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-parent</artifactId>
<version>1.4.0-SNAPSHOT</version>
<version>1.4.0</version>
</parent>

<artifactId>logback-core</artifactId>
Expand Down Expand Up @@ -41,17 +41,10 @@
<optional>true</optional>
</dependency>

<dependency>
<groupId>jakarta.activation</groupId>
<artifactId>jakarta.activation-api</artifactId>
<scope>compile</scope>
<optional>true</optional>
</dependency>

<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>jakarta.mail</artifactId>
<scope>runtime</scope>
<scope>compile</scope>
<optional>true</optional>
</dependency>

Expand Down
2 changes: 1 addition & 1 deletion logback-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-parent</artifactId>
<version>1.4.0-SNAPSHOT</version>
<version>1.4.0</version>
</parent>

<artifactId>logback-examples</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<groupId>ch.qos.logback</groupId>
<artifactId>logback-parent</artifactId>
<version>1.4.0-SNAPSHOT</version>
<version>1.4.0</version>
<packaging>pom</packaging>

<name>Logback-Parent</name>
Expand Down Expand Up @@ -47,7 +47,7 @@

<properties>
<!-- yyyy-MM-dd'T'HH:mm:ss'Z' -->
<project.build.outputTimestamp>2022-08-09T08:27:00Z</project.build.outputTimestamp>
<project.build.outputTimestamp>2022-08-28T17:20:00Z</project.build.outputTimestamp>
<latest.stable.version>1.2.11</latest.stable.version>
<jdk.version>11</jdk.version>
<maven.compiler.release>${jdk.version}</maven.compiler.release>
Expand Down

0 comments on commit e83403e

Please sign in to comment.