From 467107dcebbafa39e372bd58f68a3d3ffc001ee1 Mon Sep 17 00:00:00 2001 From: Dmitry Aleksandrov Date: Mon, 6 Mar 2023 13:18:51 +0200 Subject: [PATCH] [4.x] Remove FileHandler from logging.properties --- .../static-content/src/test/resources/logging.properties | 6 +----- .../micrometer/cdi/src/test/resources/logging.properties | 4 ++-- microprofile/metrics/src/test/resources/logging.properties | 4 ++-- .../src/test/resources/logging.properties | 4 ++-- 4 files changed, 7 insertions(+), 11 deletions(-) diff --git a/examples/microprofile/static-content/src/test/resources/logging.properties b/examples/microprofile/static-content/src/test/resources/logging.properties index a9746102e97..2c290104ca2 100644 --- a/examples/microprofile/static-content/src/test/resources/logging.properties +++ b/examples/microprofile/static-content/src/test/resources/logging.properties @@ -1,5 +1,5 @@ # -# Copyright (c) 2018, 2022 Oracle and/or its affiliates. +# Copyright (c) 2018, 2023 Oracle and/or its affiliates. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -16,8 +16,4 @@ handlers=io.helidon.logging.jul.HelidonConsoleHandler .level=INFO -java.util.logging.FileHandler.pattern=%h/java%u.log -java.util.logging.FileHandler.limit=50000 -java.util.logging.FileHandler.count=1 -java.util.logging.FileHandler.formatter=java.util.logging.XMLFormatter org.jboss.weld.level=INFO diff --git a/integrations/micrometer/cdi/src/test/resources/logging.properties b/integrations/micrometer/cdi/src/test/resources/logging.properties index 18b4c248b69..2110d882051 100644 --- a/integrations/micrometer/cdi/src/test/resources/logging.properties +++ b/integrations/micrometer/cdi/src/test/resources/logging.properties @@ -1,5 +1,5 @@ # -# Copyright (c) 2021, 2022 Oracle and/or its affiliates. +# Copyright (c) 2021, 2023 Oracle and/or its affiliates. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -18,7 +18,7 @@ # For more information see $JAVA_HOME/jre/lib/logging.properties # Send messages to the console -handlers=io.helidon.logging.jul.HelidonConsoleHandler,java.util.logging.FileHandler +handlers=io.helidon.logging.jul.HelidonConsoleHandler # HelidonConsoleHandler uses a SimpleFormatter subclass that replaces "!thread!" with the current thread java.util.logging.SimpleFormatter.format=%1$tY.%1$tm.%1$td %1$tH:%1$tM:%1$tS %4$s %3$s !thread!: %5$s%6$s%n diff --git a/microprofile/metrics/src/test/resources/logging.properties b/microprofile/metrics/src/test/resources/logging.properties index 9a236812f1b..7c5db6243b0 100644 --- a/microprofile/metrics/src/test/resources/logging.properties +++ b/microprofile/metrics/src/test/resources/logging.properties @@ -1,5 +1,5 @@ # -# Copyright (c) 2021, 2022 Oracle and/or its affiliates. +# Copyright (c) 2021, 2023 Oracle and/or its affiliates. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -18,7 +18,7 @@ # For more information see $JAVA_HOME/jre/lib/logging.properties # Send messages to the console -handlers=io.helidon.logging.jul.HelidonConsoleHandler,java.util.logging.FileHandler +handlers=io.helidon.logging.jul.HelidonConsoleHandler # HelidonConsoleHandler uses a SimpleFormatter subclass that replaces "!thread!" with the current thread java.util.logging.SimpleFormatter.format=%1$tY.%1$tm.%1$td %1$tH:%1$tM:%1$tS %4$s %3$s !thread!: %5$s%6$s%n diff --git a/microprofile/tests/tck/tck-fault-tolerance/src/test/resources/logging.properties b/microprofile/tests/tck/tck-fault-tolerance/src/test/resources/logging.properties index a90b3726520..164c09bb60c 100644 --- a/microprofile/tests/tck/tck-fault-tolerance/src/test/resources/logging.properties +++ b/microprofile/tests/tck/tck-fault-tolerance/src/test/resources/logging.properties @@ -1,5 +1,5 @@ # -# Copyright (c) 2018 Oracle and/or its affiliates. +# Copyright (c) 2018, 2023 Oracle and/or its affiliates. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -15,5 +15,5 @@ # # Logging -handlers = java.util.logging.FileHandler, java.util.logging.ConsoleHandler +handlers = java.util.logging.FileHandler .level = FINE