Fix: Ensure the Java JUL messages are correctly formatted
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Thu, 4 Feb 2016 05:32:01 +0000 (00:32 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 4 Feb 2016 14:19:26 +0000 (09:19 -0500)
commit4721f9c7dc15670ecc9c2dcdd58d87eb2a2735a5
tree501c5a0aa7b0b7990fa270d41ce1b5ae50a6e716
parent6b95617c2ec5759621a64ebf4d44c837cccd100c
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.

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