New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@madgex/datadog-logger

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@madgex/datadog-logger - npm Package Compare versions

Comparing version

to
1.1.4

{
"name": "@madgex/datadog-logger",
"version": "1.1.3",
"version": "1.1.4",
"description": "Setup console and Hapi Good logger",

@@ -5,0 +5,0 @@ "main": "logger_setup.js",

@@ -25,5 +25,9 @@ # Madgex Datadog logger setup for node applications

if (process.env.NODE_ENV === 'production') {
//If not set - logs wil be output to console
//Note: myServicePortNo - you will need to ask systems which port your service should log to
loggerOptions.dataDog = { port: myServicePortNo };
//If not set - logs wil be output to console
loggerOptions.dataDog = {
//Note: myServicePortNo - you will need to ask systems which port your service should log to
port: myServicePortNo,
udp: true, //if false will use TCP
// hostIp: x.x.x.x -- use to override agent host - leave unset to discover current host on AWS
};
}

@@ -30,0 +34,0 @@ _logger = await DatadogLogger.createLogger(loggerOptions);