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 2003/05/09 16:06:59 UTC
DO NOT REPLY [Bug 19796] New: -
Would be nice to have RelativeTimeDateFormat available in PatternLayout
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=19796>.
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=19796
Would be nice to have RelativeTimeDateFormat available in PatternLayout
Summary: Would be nice to have RelativeTimeDateFormat available
in PatternLayout
Product: Log4j
Version: 1.2
Platform: All
OS/Version: All
Status: NEW
Severity: Enhancement
Priority: Other
Component: Layout
AssignedTo: log4j-dev@jakarta.apache.org
ReportedBy: analogue@yahoo.com
I don't ask for much :)
Example conversion pattern would be:
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern"
value="%d{RELATIVE} %-5p %15.15c{1}.%-20.20M|%x %m%n"/>
</layout>
Index: PatternParser.java
===================================================================
RCS file:
/home/cvspublic/jakarta-log4j/src/java/org/apache/log4j/helpers/PatternParser.
java,v
retrieving revision 1.19
diff -r1.19 PatternParser.java
257a258,260
> else if (dateFormatStr.equalsIgnoreCase("RELATIVE"))
> df = new RelativeTimeDateFormat();
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org