From 128f8130e36b90feca671e83c46a0cc3aec6fd30 Mon Sep 17 00:00:00 2001 From: Tomasz Kowalczewski Date: Fri, 24 Mar 2023 13:20:59 +0100 Subject: [PATCH] Re #107: [Logback] Added documentation about logger name and thread name in Loki labels. --- logback-appender/README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/logback-appender/README.md b/logback-appender/README.md index 1339635..3127828 100644 --- a/logback-appender/README.md +++ b/logback-appender/README.md @@ -215,6 +215,26 @@ it into a label. ``` +### 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 + + + ... + + + logger_name + + + + thread_name + + +``` + ## Details Let's go through the example config above and analyze configuration options (**Note: Tags are case-insensitive**).