Bug 42589 - Parameterized logging for log4j 1.2
Parameterized logging for log4j 1.2
Status: RESOLVED FIXED
Product: Log4j
Classification: Unclassified
Component: Other
1.2
Other other
: P2 normal
: ---
Assigned To: log4j-dev
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2007-06-05 06:15 UTC by Curt Arnold
Modified: 2007-08-21 14:12 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Curt Arnold 2007-06-05 06:15:00 UTC
Log4J 1.3 added new methods for parameterized logging, like:

logger.debug("User name: {}", user);

that used a message formatter with a syntax similar (but not compatible) with java.text.MessageFormatter.

This enhancement adds two companions for log4j 1.2.x that add similar capabilities to deployed log4j 
versions, logmf uses java.text.MessageFormatter while logsf uses a formatter compatible with log4j 1.3.
Comment 1 Curt Arnold 2007-08-21 14:12:53 UTC
Added to extras companion.