From: Michael Jeanson Date: Thu, 10 Feb 2022 15:25:02 +0000 (+0000) Subject: Add 'domain' parameter to the Log4j 2.x agent X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=37d351b83b6a3cb7ee952364a0bdb5dadfa616bc;hp=37d351b83b6a3cb7ee952364a0bdb5dadfa616bc;p=lttng-ust.git Add 'domain' parameter to the Log4j 2.x agent The initial Log4j 2.x agent commit only implemented a compatibility mode to be used with the existing LOG4J domain in lttng-tools. In this mode the agent converts the new Log4j 2.x loglevel values to their corresponding Log4j 1.x values in the same way the upstream compatibility bridge does. This is great when doing in-place migration using the upstream compatibility bridge but doesn't cover the usecase of an application that natively uses Log4j 2.x. This commit adds a new mandatory 'domain' parameter to the Log4j2 agent which currently only implements the 'LOG4J' compatibility domain in preparation to adding a 'LOG4J2' domain. The configuration for a single appender in Log4j 1.x compat mode will now look like this: Change-Id: I7fd5f79ad58c77175714bd4198d8ff5db2e6b846 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers ---