You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2002/11/11 01:22:08 UTC

DO NOT REPLY [Bug 14435] New: - Right-truncate priority to 1 character

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14435>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14435

Right-truncate priority to 1 character

           Summary: Right-truncate priority to 1 character
           Product: Log4j
           Version: 1.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Appender
        AssignedTo: log4j-dev@jakarta.apache.org
        ReportedBy: shortpasta@yahoo.com
                CC: shortpasta@yahoo.com


Ability to truncate ending of a priority if length() > n characters

For example:
%-5p     Expands the size of the priority to 5 chars so INFO/WARN align with 
DEBUG, ERROR, and FATAL

Desired:
%1.p     Truncates the ending of the category if more than 1 char long.

This way I'd get <D>, or <I>, instead of <DEBUG>, <INFO>.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>