logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4J2-415) Format log event time as UNIX time.
Date Tue, 01 Oct 2013 23:47:24 GMT

    [ https://issues.apache.org/jira/browse/LOG4J2-415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13783488#comment-13783488

Gary Gregory commented on LOG4J2-415:

I like the separate converter too from a code maintenance POV because it does the job differently
from the current date pattern converter.

>From a user's POV, I wonder if it will be confusing that a date format has to be used
outside of the usual %d{...} format. It clearly is NOT a date format, so from that POV it
should not be confusing.

> Format log event time as UNIX time.
> -----------------------------------
>                 Key: LOG4J2-415
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-415
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Layouts
>         Environment: Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19
> Maven home: C:\Java\apache-maven-3.0.5\bin\..
> Java version: 1.7.0_25, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk1.7.0_25\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
>            Reporter: Gary Gregory
>            Assignee: Gary Gregory
>         Attachments: Log4j2-415.diff
> Format log event time as UNIX time.
> This patch proposes two solutions, we should pick one.
> Either use %d{UNIX} and modify the existing DatePatternConverter which makes the class
a tiny bit more convoluted.
> Or, create a new UnixTimePatternConverter, which is simple, but duplicates the pattern
of DatePatternConverter.
> Discuss! :)

This message was sent by Atlassian JIRA

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

View raw message