You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2024/06/10 09:21:10 UTC
(jena) branch main updated (39a3e1ce02 -> 76f13e3880)
This is an automated email from the ASF dual-hosted git repository.
andy pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git
from 39a3e1ce02 Add -proc:none to call of Java compiler (Test_schemagen)
new 9fd678856f Remove stray logging.properties file
new 76f13e3880 Reset JUL LogManger before resetting the configuration
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../java/org/apache/jena/atlas/logging/LogCtlJUL.java | 8 +++++++-
jena-rdfpatch/src/test/resources/logging.properties | 17 -----------------
2 files changed, 7 insertions(+), 18 deletions(-)
delete mode 100644 jena-rdfpatch/src/test/resources/logging.properties
(jena) 02/02: Reset JUL LogManger before resetting the configuration
Posted by an...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
andy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git
commit 76f13e3880c1719b32cdb977d80fa4b8985ddb37
Author: Andy Seaborne <an...@apache.org>
AuthorDate: Sun Jun 9 19:33:36 2024 +0100
Reset JUL LogManger before resetting the configuration
---
.../src/main/java/org/apache/jena/atlas/logging/LogCtlJUL.java | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/jena-base/src/main/java/org/apache/jena/atlas/logging/LogCtlJUL.java b/jena-base/src/main/java/org/apache/jena/atlas/logging/LogCtlJUL.java
index ccc898d56a..495b6bbe2c 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/logging/LogCtlJUL.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/logging/LogCtlJUL.java
@@ -69,7 +69,13 @@ public class LogCtlJUL {
static void readJavaLoggingConfiguration(InputStream details) throws Exception {
System.setProperty(JUL_PROPERTY, "set");
- java.util.logging.LogManager.getLogManager().readConfiguration(details);
+ java.util.logging.LogManager logManager = java.util.logging.LogManager.getLogManager();
+ // Calling .reset, stops the ConsoleHandler closing System.err.
+ // readConfiguration (or updateConfiguration) will shutdown cleanly and ConsoleHandler.close is called.
+ // That calls System.err.close()
+ // See ConsoleHandlerStream in this package, a variant that does not close the PrintStream.
+ logManager.reset();
+ logManager.readConfiguration(details);
}
private static boolean setJavaLoggingClasspath(String resourceName) {
(jena) 01/02: Remove stray logging.properties file
Posted by an...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
andy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git
commit 9fd678856f92ad0f7db3fc1e271061683ff57e34
Author: Andy Seaborne <an...@apache.org>
AuthorDate: Sun Jun 9 19:33:04 2024 +0100
Remove stray logging.properties file
---
jena-rdfpatch/src/test/resources/logging.properties | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/jena-rdfpatch/src/test/resources/logging.properties b/jena-rdfpatch/src/test/resources/logging.properties
deleted file mode 100644
index 165b30c880..0000000000
--- a/jena-rdfpatch/src/test/resources/logging.properties
+++ /dev/null
@@ -1,17 +0,0 @@
-handlers=org.apache.jena.atlas.logging.java.ConsoleHandlerStream
-org.apache.jena.atlas.logging.java.ConsoleHandlerStream.level = ALL
-.level=INFO
-
-## org.apache.jena.atlas.logging.java.ConsoleHandlerStream.level=INFO
-## org.apache.jena.atlas.logging.java.ConsoleHandlerStdout.formatter = \
-## org.apache.jena.atlas.logging.java.TextFormatter
-## org.apache.jena.atlas.logging.java.TextFormatter.format = \
-## default: %5$tT %3$-5s %2$-20s :: %6$s
-## Full name %1 and milliseconds %5$tL %$
-## date/time : [%5$tF %5$tT]
-## %5$tT.%5$tL %3$-5s %1$-20s :: %6$s
-
-org.apache.jena.atlas.logging.java.TextFormatter.format = %5$tT %3$-5s %2$-20s : %6$s
-
-org.seaborne.patch.level = WARNING
-org.apache.jena.level = INFO