You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/nodejs.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -452,14 +452,15 @@ These properties are client specific, so you can configure `appInsights.defaultC
452
452
| correlationIdRetryIntervalMs | The time to wait before retrying to retrieve the ID for cross-component correlation. (Default is `30000`.) |
453
453
| correlationHeaderExcludedDomains| A list of domains to exclude from cross-component correlation header injection. (Default. See [Config.ts](https://github.com/Microsoft/ApplicationInsights-node.js/blob/develop/Library/Config.ts).)|
454
454
455
-
##**How do I customize logs collection?**
455
+
##How do I customize logs collection?
456
456
457
457
By default, Application Insights Node.js SDK logs at warning level to console.
458
458
459
-
To spot and diagnose issues with Application Insights, "Self-diagnostics" can be enabled. This means collection of internal logging from Application Insights Node.js SDK.
459
+
To spot and diagnose issues with Application Insights, "Self-diagnostics" can be enabled. This means collection of internal logging from the Application Insights Node.js SDK.
460
460
461
-
The following code demonstrates how to enable debug logging as well and generate telemetry for internal logs.
461
+
The following code demonstrates how to enable debug logging as well as generate telemetry for internal logs.
462
462
463
+
```
463
464
let appInsights = require("applicationinsights");
464
465
appInsights.setup("<YOUR_CONNECTION_STRING>")
465
466
.setInternalLogging(true, true) // Enable both debug and warning logging
0 commit comments