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: ggb...@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-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-dev-h...@logging.apache.org