Skip to content

Commit af93dae

Browse files
Merge pull request #274739 from heyams/heya/update-java-docs
Add doc for APPLICATIONINSIGHTS_INSTRUMENTATION_LOGGING_ENABLED
2 parents 0f09a2b + 4b1aab6 commit af93dae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

articles/azure-monitor/app/java-standalone-config.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,8 @@ You can use these valid `level` values to specify in the `applicationinsights.js
471471
| TRACE (or FINEST) | TRACE | TRACE | TRACE | FINEST |
472472
| ALL | ALL | ALL | ALL | ALL |
473473

474+
You can turn off autocollected logging completedly by setting the environment variable `APPLICATIONINSIGHTS_INSTRUMENTATION_LOGGING_ENABLED` to `false`. It's on by default.
475+
474476
> [!NOTE]
475477
> If an exception object is passed to the logger, the log message (and exception object details) will show up in the Azure portal under the `exceptions` table instead of the `traces` table. If you want to see the log messages across both the `traces` and `exceptions` tables, you can write a Logs (Kusto) query to union across them. For example:
476478
>

0 commit comments

Comments
 (0)