Add a Log4j 2.x agent specific domain 'log4j2'
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 2 Feb 2022 20:04:09 +0000 (20:04 +0000)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 30 Aug 2024 20:38:49 +0000 (16:38 -0400)
commit47abf22b48023960069e1d3e23f42298ce4b3c2a
tree1fa9d896de6be58de9e538603329d63ecc979cc4
parentd425df617976eb439b6aff4e8d32c0c8e7e13bb6
Add a Log4j 2.x agent specific domain 'log4j2'

The initial version of the new LTTng-UST Log4j 2.x agent only operated
in a compatibility mode making use of the existing 'log4j' tracing
domain currently implemented in LTTng-Tools.

While this is useful when migrating existing Log4j applications using
the compatibility bridge it does require converting the log levels from
the new Log4j 2.x values to the old Log4j 1.x standard. This results in
hiding the actual log level values from the users for applications
natively using Log4j 2.x.

Exposing the native Log4j 2.x log level values requires a new domain
since the changes are significant:

  * The same list of standard log levels and names
  * Each standard log level has a new integer value
  * The log levels scale is reversed and shortened from
    'int32_max -> int32_min' to '0 -> int32_max'
  * The interval between standard log levels has changed

This new 'log4j2' domain is basicaly a straight copy of the current
'log4j' domain with minor adjustements for the reversed and shortened
scale.

Change-Id: I89f9c0a428ffe1d0bd26f7af547e9e21503de653
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
45 files changed:
include/Makefile.am
include/lttng/domain.h
include/lttng/event-rule/event-rule.h
include/lttng/event-rule/jul-logging-internal.hpp
include/lttng/event-rule/log4j-logging-internal.hpp
include/lttng/event-rule/log4j2-logging-internal.hpp [new file with mode: 0644]
include/lttng/event-rule/log4j2-logging.h [new file with mode: 0644]
include/lttng/event.h
include/lttng/lttng.h
src/bin/lttng-sessiond/agent-thread.cpp
src/bin/lttng-sessiond/agent.cpp
src/bin/lttng-sessiond/channel.cpp
src/bin/lttng-sessiond/client.cpp
src/bin/lttng-sessiond/cmd.cpp
src/bin/lttng-sessiond/context.cpp
src/bin/lttng-sessiond/event-notifier-error-accounting.cpp
src/bin/lttng-sessiond/event.cpp
src/bin/lttng-sessiond/save.cpp
src/bin/lttng-sessiond/trace-ust.hpp
src/bin/lttng-sessiond/ust-app.cpp
src/bin/lttng/commands/add_context.cpp
src/bin/lttng/commands/add_trigger.cpp
src/bin/lttng/commands/disable_events.cpp
src/bin/lttng/commands/enable_events.cpp
src/bin/lttng/commands/list.cpp
src/bin/lttng/commands/list_triggers.cpp
src/bin/lttng/loglevel.cpp
src/bin/lttng/loglevel.hpp
src/bin/lttng/utils.cpp
src/common/Makefile.am
src/common/conditions/event-rule-matches.cpp
src/common/config/config-session-abi.hpp
src/common/config/session-config.cpp
src/common/defaults.hpp
src/common/domain.cpp
src/common/event-rule/event-rule.cpp
src/common/event-rule/jul-logging.cpp
src/common/event-rule/log4j-logging.cpp
src/common/event-rule/log4j2-logging.cpp [new file with mode: 0644]
src/common/mi-lttng-4.1.xsd
src/common/mi-lttng.cpp
src/common/mi-lttng.hpp
src/common/session.xsd
src/lib/lttng-ctl/liblttng-ctl.sym
src/lib/lttng-ctl/lttng-ctl.cpp
This page took 0.028913 seconds and 4 git commands to generate.