GELF appender: set version to 1.1

This commit is contained in:
Jens John 2014-07-10 14:26:27 +09:00
parent 5b2d840472
commit 0f51ab1bb3

View File

@ -101,7 +101,7 @@ function gelfAppender (layout, host, port, hostname, facility) {
msg.full_message = layout(loggingEvent);
msg.short_message = msg.full_message;
msg.version="1.0";
msg.version="1.1";
msg.timestamp = msg.timestamp || new Date().getTime() / 1000; // log should use millisecond
msg.host = hostname;
msg.level = levelMapping[loggingEvent.level || levels.DEBUG];