Add missing category field

Current logstashUDP appender doesn't send category of the loggingEvent which is very useful when filtering for logs.
This commit is contained in:
Sergey Maskalik 2015-10-12 12:56:14 -07:00
parent 515291b1db
commit 3ea6422685

View File

@ -21,7 +21,8 @@ function logstashUDP (config, layout) {
'@timestamp': (new Date(loggingEvent.startTime)).toISOString(),
type: type,
message: logMessage,
fields: fields
fields: fields,
category: loggingEvent.logger.category
};
sendLog(udp, config.host, config.port, logObject);
};