From 864f2e33cd48ab32a5333b898deb755f099524d1 Mon Sep 17 00:00:00 2001 From: "tomasz.kowalczewski" Date: Sat, 4 Sep 2021 22:37:25 +0200 Subject: [PATCH] Small tweaks to formatting. --- log4j2-appender/README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/log4j2-appender/README.md b/log4j2-appender/README.md index 3190f15..78f282c 100644 --- a/log4j2-appender/README.md +++ b/log4j2-appender/README.md @@ -122,9 +122,9 @@ are [automatically interpolated by Log4j2](https://logging.apache.org/log4j/log4 appender. The exception to this rule is context/MDC (`${ctx:foo}`) value lookup - it is performed for each message at runtime (allocation free). -NOTE: This process could have been executed for every lookup type at runtime (for each log message). This approach was +*NOTE: This process could have been executed for every lookup type at runtime (for each log message). This approach was deemed too expensive. If you need a mechanism to replace a variable (other than context/MDC) after logging system -initialization I would love to hear your use case - please file an issue. +initialization I would love to hear your use case - please file an issue.* ## Patterns in Labels @@ -140,11 +140,11 @@ Log4j [pattern layout](https://logging.apache.org/log4j/2.x/manual/layouts.html# internal classes for this implementation. It is generally efficient and allocation free as per [documentation](https://logging.apache.org/log4j/log4j-2.12.1/manual/garbagefree.html#PatternLayout). -### Properties file based configuration +## Properties file based configuration Properties file is a simple configuration format, but it is not always clear how to implement more advanced features such as components instantiated more than once. For basic overview of how to configure log4j using properties file -see [here](https://logging.apache.org/log4j/2.x/manual/configuration.html#Properties). +see [here](https://logging.apache.org/log4j/2.x/manual/configuration.html#Properties).
Here is an example configuration that defines multiple labels. @@ -185,9 +185,10 @@ appender.loki.labels[1].value=log4j
-## Details +## Configuration reference -Let's go through the example config above and analyze configuration options (**Note: Tags are case-insensitive**). +Let's go through the example config used in previous sections and analyze configuration options (**Note: Tags are +case-insensitive**). #### Host (required)