https://issues.apache.org/bugzilla/show_bug.cgi?id=45982

           Summary: Unqualified %X specifier for all MDC values
           Product: Log4j
           Version: 1.2
          Platform: PC
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Layout
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


log4j 1.2's PatternLayout supports %X{keyname}, but if a keyname is
unspecified, Map.get(null) is called which may throw a NullPointerException or
at best will return null.  log4j 1.3's PatternLayout and extras
EnhancedPatternLayout will output all key-value pairs in braces like
"{{key1,val1}{key2,val2}}".  This patch adds the log4j
1.3/EnhancedPatternLayout behavior, in addition, it sorts the keys
alphabetically.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to