Skip to content

Commit

Permalink
added toString helper method
Browse files Browse the repository at this point in the history
  • Loading branch information
ar committed Dec 13, 2014
1 parent f25c784 commit 0037ed6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions jpos/src/main/java/org/jpos/util/LogEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,15 @@ public String getRealm() {
public List<Object> getPayLoad() {
return payLoad;
}
public String toString() {
public String toString(String indent) {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
PrintStream p = new PrintStream (baos);
dump (p, "");
dump (p, indent);
return baos.toString();
}
public String toString() {
return toString("");
}

/**
* This is a hack for backward compatibility after accepting PR67
Expand Down

0 comments on commit 0037ed6

Please sign in to comment.