From b9bba00d8cab8382433a949f860271a6c61c4d86 Mon Sep 17 00:00:00 2001 From: Karl Lam Date: Mon, 16 Sep 2013 18:31:23 +0800 Subject: [PATCH] GELF time precision should be millisecond level --- lib/appenders/gelf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/appenders/gelf.js b/lib/appenders/gelf.js index 3b32915..8e075b5 100644 --- a/lib/appenders/gelf.js +++ b/lib/appenders/gelf.js @@ -100,7 +100,7 @@ function gelfAppender (layout, host, port, hostname, facility) { msg.short_message = msg.full_message; msg.version="1.0"; - msg.timestamp = msg.timestamp || new Date().getTime() / 1000 >> 0; + msg.timestamp = msg.timestamp || new Date().getTime() / 1000; // log should use millisecond msg.host = hostname; msg.level = levelMapping[loggingEvent.level || levels.DEBUG]; msg.facility = facility;