mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
removed unused function
This commit is contained in:
parent
5e428cb58e
commit
e725bec031
@ -4,10 +4,6 @@ var layouts = require('../layouts')
|
||||
, util = require('util')
|
||||
, _ = require('underscore');
|
||||
|
||||
function log(loggingEvent) {
|
||||
|
||||
}
|
||||
|
||||
function logstashUDP (config, layout) {
|
||||
var udp = dgram.createSocket('udp4');
|
||||
var type = config.logType ? config.logType : config.category;
|
||||
@ -17,7 +13,7 @@ function logstashUDP (config, layout) {
|
||||
}
|
||||
return function log(loggingEvent) {
|
||||
|
||||
/*
|
||||
/*
|
||||
https://gist.github.com/jordansissel/2996677
|
||||
{
|
||||
"message" => "hello world",
|
||||
@ -36,8 +32,8 @@ function logstashUDP (config, layout) {
|
||||
"@timestamp" : (new Date(loggingEvent.startTime)).toISOString(),
|
||||
"type" : config.logType ? config.logType : config.category,
|
||||
"message" : layout(loggingEvent),
|
||||
"fields" : _.extend(config.fields,
|
||||
loggingEvent.data.length > 1 ? loggingEvent.data[1] : {},
|
||||
"fields" : _.extend(config.fields,
|
||||
loggingEvent.data.length > 1 ? loggingEvent.data[1] : {},
|
||||
{'level':loggingEvent.level.levelStr})
|
||||
};
|
||||
sendLog(udp, config.host, config.port, logObject);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user