Re #107: [Logback] Added documentation about logger name and thread name in Loki labels.

This commit is contained in:
Tomasz Kowalczewski committed 2023-03-24 13:20:59 +01:00
1 parent 86eeab2a11
commit 128f8130e3
1 file changed
+20
+20
View File
@@ -215,6 +215,26 @@ it into a label.
```
</details>
### Logger name and thread name in labels
You can include logger name and logging thread name as labels by using dedicated configuration tags. It will dynamically extract these values and will turn
them into a label.
```xml
<appender name="Loki" class="pl.tkowalcz.tjahzi.logback.LokiAppender">
...
<loggerNameLabel>
logger_name
</loggerNameLabel>
<threadNameLabel>
thread_name
</threadNameLabel>
</appender>
```
## Details
Let's go through the example config above and analyze configuration options (**Note: Tags are case-insensitive**).