Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357216 - Logging via Log4J does not expand braces in format strings
Summary: Logging via Log4J does not expand braces in format strings
Status: RESOLVED FIXED
Alias: None
Product: Jetty
Classification: RT
Component: server (show other bugs)
Version: 7.5.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 7.5.x   Edit
Assignee: Joakim Erdfelt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-09 07:23 EDT by Simone Bordet CLA
Modified: 2011-09-09 13:19 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simone Bordet CLA 2011-09-09 07:23:45 EDT
Refer to fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=276670, and also to http://bugzilla.slf4j.org/show_bug.cgi?id=240.

The latter is a bug filed to SLF4J, but perhaps we can work it around.

Joakim, we need your experience with the loggers to understand what would be best for us, after SLF4J has decided if this is a bug or a wrong semantic meaning of one of the parameters of LocationAwareLogger.log(...).

If the latter, we need to format the arguments and release Jetty 7.5.2; if the former, perhaps we can ask the timeframe for SLF4J 1.6.3 and/or release Jetty 7.5.2 with a workaround.
Comment 1 Joakim Erdfelt CLA 2011-09-09 13:19:21 EDT
Work completed in master to adjust the JettyAwareLogger implementation to not rely on downstream LocationAwareLogger implementation quirks.

Test project at https://github.com/jetty-project/jetty-and-log4j-example for these changes.