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, 21 Feb 2022 15:18:12 +0000 (10:18 -0500)
commit784d97f6b03268cc2144106ebcd8239b3676a28c
treea287066ed76a28cf5b9197c285ca09dc8dceedb4
parentb54feec98544d0e291309a9a5b205c4685374c2e
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.027424 seconds and 4 git commands to generate.