You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by pk...@apache.org on 2023/09/06 12:07:21 UTC

[logging-log4j2] branch main updated: Add timestamp to StatusLogger in tests

This is an automated email from the ASF dual-hosted git repository.

pkarwasz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/main by this push:
     new 8e2b6284f9 Add timestamp to StatusLogger in tests
8e2b6284f9 is described below

commit 8e2b6284f9533240917a8482fbce1d890cc7bae7
Author: Piotr P. Karwasz <pi...@karwasz.org>
AuthorDate: Wed Sep 6 14:06:48 2023 +0200

    Add timestamp to StatusLogger in tests
---
 .../src/test/resources/log4j2.StatusLogger.properties | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/log4j-core-test/src/test/resources/log4j2.StatusLogger.properties b/log4j-core-test/src/test/resources/log4j2.StatusLogger.properties
new file mode 100644
index 0000000000..1fa30d7e9d
--- /dev/null
+++ b/log4j-core-test/src/test/resources/log4j2.StatusLogger.properties
@@ -0,0 +1,19 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to you under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+##
+# Adds a timestamp to StatusLogger messages to debug race conditions
+log4j2.statusLoggerDateFormat = HH:mm:ss.SSS