());
+
+ public StringPrintStream(PrintStream ps, boolean duplicate) {
+ super(ps);
+ other = ps;
+ this.duplicate = duplicate;
+ }
+
+ public StringPrintStream(PrintStream ps) {
+ this(ps, false);
+ }
+
+ public void print(String s) {
+ if (duplicate)
+ other.print(s);
+ stringList.add(s);
+ }
+
+ public void println(String s) {
+ if (duplicate)
+ other.println(s);
+ stringList.add(s);
+ }
+
+ public void println(Object o) {
+ if (duplicate)
+ other.println(o);
+ stringList.add(o.toString());
+ }
+}
\ No newline at end of file
diff --git a/slf4j-site/src/site/pages/news.html b/slf4j-site/src/site/pages/news.html
index ae2a0d67..930cd62c 100755
--- a/slf4j-site/src/site/pages/news.html
+++ b/slf4j-site/src/site/pages/news.html
@@ -36,6 +36,18 @@
file names in
class names in
-->
+
+
+
+ th of August, 2021 - Release of SLF4J 2.0.0-alpha4
+
+ Added support for the Java Platform Logging API
+ (JEP 264) in the new slf4j-jdk-platform-logging
+ module. JEP 264 was added in Java 9. Many thanks to Nicolai Parlog
+ for providing the relevant PR.
+
+
10th of August, 2021 - Release of SLF4J 2.0.0-alpha3