mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
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:
parent
515291b1db
commit
3ea6422685
@ -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);
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user