Repository: logging-log4j2 Updated Branches: refs/heads/master a87c1e37b -> 6ac9c998e
Rename private method now() to nowMillis(). Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/6ac9c998 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/6ac9c998 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/6ac9c998 Branch: refs/heads/master Commit: 6ac9c998e8cb44cefd2c310490389f73de235a4c Parents: a87c1e3 Author: Gary Gregory <[email protected]> Authored: Sun Mar 1 14:41:18 2015 -0800 Committer: Gary Gregory <[email protected]> Committed: Sun Mar 1 14:41:18 2015 -0800 ---------------------------------------------------------------------- .../org/apache/logging/log4j/core/jmx/StatusLoggerAdmin.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/6ac9c998/log4j-core/src/main/java/org/apache/logging/log4j/core/jmx/StatusLoggerAdmin.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/jmx/StatusLoggerAdmin.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/jmx/StatusLoggerAdmin.java index b2377dc..de819b0 100644 --- a/log4j-core/src/main/java/org/apache/logging/log4j/core/jmx/StatusLoggerAdmin.java +++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/jmx/StatusLoggerAdmin.java @@ -138,11 +138,11 @@ public class StatusLoggerAdmin extends NotificationBroadcasterSupport implements */ @Override public void log(final StatusData data) { - final Notification notifMsg = new Notification(NOTIF_TYPE_MESSAGE, getObjectName(), nextSeqNo(), now(), + final Notification notifMsg = new Notification(NOTIF_TYPE_MESSAGE, getObjectName(), nextSeqNo(), nowMillis(), data.getFormattedStatus()); sendNotification(notifMsg); - final Notification notifData = new Notification(NOTIF_TYPE_DATA, getObjectName(), nextSeqNo(), now()); + final Notification notifData = new Notification(NOTIF_TYPE_DATA, getObjectName(), nextSeqNo(), nowMillis()); notifData.setUserData(data); sendNotification(notifData); } @@ -162,7 +162,7 @@ public class StatusLoggerAdmin extends NotificationBroadcasterSupport implements return sequenceNo.getAndIncrement(); } - private long now() { + private long nowMillis() { return System.currentTimeMillis(); }
