Fix: Ensure the Java JUL messages are correctly formatted
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Thu, 4 Feb 2016 20:02:57 +0000 (15:02 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 4 Feb 2016 20:13:28 +0000 (15:13 -0500)
commit267f70926b9311fa87adfda0f5c900e9e6826421
tree67b78bcba41000f4e69c6a0e80794c814caceb45
parent7e249a01c9fd7582048e233e7abb1653d602d55f
Fix: Ensure the Java JUL messages are correctly formatted

It is possible for log records to contain messages that need some
formatting, for example if the string contains localized elements
or if the log(Level, String, Object[]) method is used.

In these cases, we need to make sure to format the string and not
pass the "raw" string to the tracepoint.

This only applies to the JUL API. log4j 1.2.x did not handle such
formatting, although log4j 2.x does.

This is a backport of commit 4721f9c to the stable-2.7 branch.

Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-java-agent/java/org/lttng/ust/agent/jul/LTTngLogHandler.java
This page took 0.024321 seconds and 4 git commands to generate.