log4js-logstash-tcp
Advanced tools
Comparing version 2.0.2 to 2.0.3
14
index.js
@@ -9,2 +9,10 @@ 'use strict'; | ||
let apm = false; | ||
try { | ||
apm = require('elastic-apm-node'); | ||
} catch(e) { | ||
// ignore APM if it's not loaded | ||
} | ||
function sendLog(host, port, logObject) { | ||
@@ -39,8 +47,6 @@ tcpConnectionPool.send(host, port, logObject); | ||
let currentAPMTransaction = false | ||
try { | ||
const apm = require('elastic-apm-node'); | ||
if(apm && apm.currentTransaction) { | ||
currentAPMTransaction = apm.currentTransaction | ||
} catch(e) { | ||
// ignore APM if it's not loaded | ||
} | ||
/* | ||
@@ -47,0 +53,0 @@ https://gist.github.com/jordansissel/2996677 |
{ | ||
"name": "log4js-logstash-tcp", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"author": "Aigent B.V.", | ||
@@ -5,0 +5,0 @@ "description": "This is a copy of the logstashUDP appender but instead sending via UDP send via TCP to avoid the maximum 64k bytes message size with the logstashUDP appender.", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29017
226