@allthings/cloud-toolkit 1.3.0-dev.1 → 1.3.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib.cjs.js +3 -3
- package/dist/lib.esm.js +3 -3
- package/dist/lib.umd.min.js +1 -1
- package/dist/src/logger/logger.d.ts +0 -2
- package/package.json +1 -1
package/dist/lib.cjs.js
CHANGED
|
@@ -170,10 +170,10 @@ const logger = (config) => {
|
|
|
170
170
|
format: 'DD-MM-YYYY HH:mm:ss',
|
|
171
171
|
}), winston.format.json()),
|
|
172
172
|
};
|
|
173
|
-
if (config.datadogApiKey
|
|
173
|
+
if (config.datadogApiKey) {
|
|
174
174
|
const httpOptions = {
|
|
175
|
-
|
|
176
|
-
|
|
175
|
+
host: 'http-intake.logs.datadoghq.eu',
|
|
176
|
+
path: `/api/v2/logs?dd-api-key=${config.datadogApiKey}&ddsource=nodejs&service=${config.service}`,
|
|
177
177
|
port: 443,
|
|
178
178
|
ssl: true,
|
|
179
179
|
};
|
package/dist/lib.esm.js
CHANGED
|
@@ -149,10 +149,10 @@ const logger = (config) => {
|
|
|
149
149
|
format: 'DD-MM-YYYY HH:mm:ss',
|
|
150
150
|
}), format.json()),
|
|
151
151
|
};
|
|
152
|
-
if (config.datadogApiKey
|
|
152
|
+
if (config.datadogApiKey) {
|
|
153
153
|
const httpOptions = {
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
host: 'http-intake.logs.datadoghq.eu',
|
|
155
|
+
path: `/api/v2/logs?dd-api-key=${config.datadogApiKey}&ddsource=nodejs&service=${config.service}`,
|
|
156
156
|
port: 443,
|
|
157
157
|
ssl: true,
|
|
158
158
|
};
|