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 2010/01/20 22:52:59 UTC

DO NOT REPLY [Bug 48583] New: allow format of timestamp (first column of log file) to be parameterised

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

           Summary: allow format of timestamp (first column of log file)
                    to be parameterised
           Product: Log4j
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Layout
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: michael.kyritsis@gmail.com


Created an attachment (id=24868)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24868)
source code and patch for the new functionality

The first column of the log file produced by org.apache.log4j.HTMLLayout (which
is an HTML file) is currently number of milliseconds since start of the
program, which is difficult for a person to mentally convert into date/time. I
have looked at the source code, and it is not possible to configure any
parameters to give a date/time in a readable form, so I added the necessary
code to support a property "TimestampFormat"

I have attached the updated source code for both HTMLLayout.java and
HTMLLayoutTest.java test class, as well as the patch output.  Please could
these changes (improvements) be reviewed, and if OK incorporated into Log4j?

Thanks and regards,
Michael Kyritsis

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