logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41565] New: - Timezone specifier in pattern layout reported not to work
Date Thu, 08 Feb 2007 05:36:17 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41565>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41565

           Summary: Timezone specifier in pattern layout reported not to
                    work
           Product: Log4j
           Version: 1.3alpha
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Layout
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: carnold@apache.org


Raised on log4j-user on 2007-01-08 by Eric Kolotyluk and revisited 2007-02-07:
Archived as
http://marc.theaimsgroup.com/?l=log4j-user&m=116828839225317&w=2
http://marc.theaimsgroup.com/?l=log4j-user&m=117088896313157&w=2

Thanks for the info. I reviewed the bug information too. I'm still not
sure what to do next.

I'm using the following pattern in my Logging.properties file

log4j.rootLogger=INFO, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%-5p %d{yyyy.MM.dd
HH:mm:ss,SSS}{GMT} Z [%t] %c{1} - %m%n

and this is what I get in the log file

INFO  2007.01.04 07:47:45,454{GMT} Z . . .

Where the time is definitely not GMT. We're using Java 1.4.2_12 as a
runtime. The 1.4.2 javadoc seems to indicate that GMT is an acceptable
timezone. It looks as though PatternLayout is not recognizing the second
set of braces after %d{yyyy.MM.dd HH:mm:ss,SSS}

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message