Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 357216

Summary: Logging via Log4J does not expand braces in format strings
Product: [RT] Jetty Reporter: Simone Bordet <simone.bordet>
Component: serverAssignee: Joakim Erdfelt <joakim.erdfelt>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jetty-inbox
Version: 7.5.1   
Target Milestone: 7.5.x   
Hardware: PC   
OS: Linux   
Whiteboard:

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.