Skip to content

Commit 51a117c

Browse files
Update nodejs.md
Fixing formatting and typos
1 parent 693ce1f commit 51a117c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

articles/azure-monitor/app/nodejs.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,14 +452,15 @@ These properties are client specific, so you can configure `appInsights.defaultC
452452
| correlationIdRetryIntervalMs | The time to wait before retrying to retrieve the ID for cross-component correlation. (Default is `30000`.) |
453453
| 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).)|
454454

455-
##**How do I customize logs collection?**
455+
## How do I customize logs collection?
456456

457457
By default, Application Insights Node.js SDK logs at warning level to console.
458458

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.
460460

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.
462462

463+
```
463464
let appInsights = require("applicationinsights");
464465
appInsights.setup("<YOUR_CONNECTION_STRING>")
465466
.setInternalLogging(true, true) // Enable both debug and warning logging
@@ -472,6 +473,7 @@ process.env.APPLICATIONINSIGHTS_LOG_DESTINATION = "file+console";
472473
process.env.APPLICATIONINSIGHTS_LOGDIR = "C:\\applicationinsights\\logs";
473474
474475
// Application Insights SDK setup....
476+
```
475477

476478
## Troubleshooting
477479

0 commit comments

Comments
 (0)