diff --git a/src/main/java/com/meituan/lyrebird/client/api/EventDetail.java b/src/main/java/com/meituan/lyrebird/client/api/EventDetail.java index cb38ebb..df75010 100644 --- a/src/main/java/com/meituan/lyrebird/client/api/EventDetail.java +++ b/src/main/java/com/meituan/lyrebird/client/api/EventDetail.java @@ -54,6 +54,6 @@ public void setTimestamp(long timestamp) { @Override public String toString() { - return String.format("| %s | %s | %s%n%s", eventID, channel, timestamp, content); + return String.format("%n[eventId] %s,[channel] %s, [timestamp] %s%n[content] %s%n", eventID, channel, timestamp, content); } } \ No newline at end of file diff --git a/src/main/java/com/meituan/lyrebird/client/api/Events.java b/src/main/java/com/meituan/lyrebird/client/api/Events.java index 1e5495d..8c74651 100644 --- a/src/main/java/com/meituan/lyrebird/client/api/Events.java +++ b/src/main/java/com/meituan/lyrebird/client/api/Events.java @@ -48,6 +48,6 @@ public void setPageSize(int pageSize) { @Override public String toString() { - return String.format("| %s | %s | %s%n%s", page, pageCount, pageSize, Arrays.toString(eventDetails)); + return String.format("%n[page] %s,[page count] %s, [page size] %s%n%s%n", page, pageCount, pageSize, Arrays.toString(eventDetails)); } } \ No newline at end of file