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 2014/04/02 17:12:08 UTC

[Bug 56340] New: EnhancedPatternLayout layout could be improved

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

            Bug ID: 56340
           Summary: EnhancedPatternLayout layout could be improved
           Product: Log4j
           Version: unspecified
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Layout
          Assignee: log4j-dev@logging.apache.org
          Reporter: ggb667@gmail.com

%c
greg.AsynchronysFoxtrotExample

BUG:

The ~ separator takes up just as much space as the actual text.

%c{3~.2~.1~.}

   gre~.AsynchronysFoxtrotExample   
That's silly, it should be:  
   greg.AsynchronysFoxtrotExample

BUG:

If the . is left off it would be nice if the ~ replaced the . like so:

%c{3~} //Does not work, the docs say it should

Desired:
gre~AsynchronysFoxtrotExample
gre~fff~ddd~ccc~bbb~aaa~AsynchronysFoxtrotExample
Actual:
gre~.AsynchronysFoxtrotExample
gre~.fff~.ddd~.ccc~.bbb~.aaa~.AsynchronysFoxtrotExample

http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/EnhancedPatternLayout.html

"%logger{1~.2~} will output the first character of the first element, two
characters of the second AND SUBSEQUENT ELEMENTS AND WILL USE A TILDE TO
INDICATE ABBREVIATED CHARACTERS." (Emphasis mine)

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


[Bug 56340] EnhancedPatternLayout layout could be improved

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56340

Greg Bishop <gg...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://logging.apache.org/l
                   |                            |og4j/1.2/apidocs/org/apache
                   |                            |/log4j/pattern/NameAbbrevia
                   |                            |tor.html
           Hardware|PC                          |All
                 OS|                            |All

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org