You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2020/12/02 17:59:04 UTC

[logging-log4j-tools] branch release-2.x updated: Let toString() reflect subclass names.

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

ggregory pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j-tools.git


The following commit(s) were added to refs/heads/release-2.x by this push:
     new 175a939  Let toString() reflect subclass names.
175a939 is described below

commit 175a9393bcb67d45453737b7549dc3307303aa40
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Dec 2 12:59:00 2020 -0500

    Let toString() reflect subclass names.
---
 .../java/org/apache/logging/log4j/server/InputStreamLogEventBridge.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/log4j-server/src/main/java/org/apache/logging/log4j/server/InputStreamLogEventBridge.java b/log4j-server/src/main/java/org/apache/logging/log4j/server/InputStreamLogEventBridge.java
index 6d66303..71950f7 100644
--- a/log4j-server/src/main/java/org/apache/logging/log4j/server/InputStreamLogEventBridge.java
+++ b/log4j-server/src/main/java/org/apache/logging/log4j/server/InputStreamLogEventBridge.java
@@ -101,7 +101,7 @@ public abstract class InputStreamLogEventBridge extends AbstractLogEventBridge<I
 
     @Override
     public String toString() {
-        return "InputStreamLogEventBridge [bufferSize=" + bufferSize + ", charset=" + charset + ", eventEndMarker="
+        return getClass().getName() + " [bufferSize=" + bufferSize + ", charset=" + charset + ", eventEndMarker="
                 + eventEndMarker + ", parser=" + parser + "]";
     }