Skip to content

Commit 8e091d6

Browse files
authored
Code properties for Logback
1 parent 16524e7 commit 8e091d6

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,23 @@ These are the valid `level` values that you can specify in the `applicationinsig
418418
> | project timestamp, message, itemType
419419
> ```
420420
421+
422+
### Code properties for Logback (preview)
423+
424+
You can enable code properties (_FileName_, _ClassName_, _MethodName_, _LineNumber_) for Logback:
425+
426+
```json
427+
{
428+
"preview": {
429+
"captureLogbackCodeAttributes": true
430+
}
431+
}
432+
```
433+
434+
> [!WARNING]
435+
>
436+
> This feature could add a performance overhead.
437+
421438
### LoggingLevel
422439

423440
Starting from version 3.3.0, `LoggingLevel` is not captured by default as part of Traces' custom dimension since that data is already captured in the `SeverityLevel` field.

0 commit comments

Comments
 (0)