fix: Convert custom loglevels in Log4j 2.x agent
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 2 Feb 2022 19:04:50 +0000 (19:04 +0000)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 14 Feb 2022 16:27:32 +0000 (11:27 -0500)
commitb6659287e99e16eb826ceff27b17cc1058967693
treee7559d1be1cdb15da5db87a17c0a0cabb81302ee
parent8063c7b022fdde06813466a21c0fcfc2d8206b56
fix: Convert custom loglevels in Log4j 2.x agent

The loglevel integer representation has changed between log4j 1.x and
2.x, we currently convert the standard loglevels but passthrough the
custom ones.

This can be problematic when using severity ranges as custom loglevels
won't be properly filtered.

Use the same strategy as the upstream Log4j 2.x compatibility layer by
converting the custom loglevels to their equivalent standard loglevel
value.

Change-Id: I8cbd4706cb774e334380050cf0b407e19d7bc7c4
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/lib/lttng-ust-java-agent/jni/log4j/lttng_ust_log4j2.c
This page took 0.027875 seconds and 4 git commands to generate.