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 2007/02/08 06:36:17 UTC

DO NOT REPLY [Bug 41565] New: - Timezone specifier in pattern layout reported not to work

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


DO NOT REPLY [Bug 41565] - Timezone specifier in pattern layout reported not to work

Posted by bu...@apache.org.
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


carnold@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From carnold@apache.org  2007-02-08 16:43 -------
Added javadoc for timezone qualifier in rev 505104.

-- 
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


DO NOT REPLY [Bug 41565] - Timezone specifier in pattern layout reported not to work

Posted by bu...@apache.org.
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





------- Additional Comments From carnold@apache.org  2007-02-08 11:33 -------
I believe there were documentation issues that Eric brough up in his earlier postings.  It would probably be 
good to address them under this bug report.

-- 
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


DO NOT REPLY [Bug 41565] - Timezone specifier in pattern layout reported not to work

Posted by bu...@apache.org.
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





------- Additional Comments From carnold@apache.org  2007-02-08 11:32 -------

On Feb 8, 2007, at 9:59 AM, Eric Kolotyluk wrote:

OK, I found the problem.

I'm using Eclipse and I have two projects, my main app and my plug-ins.
My main app has log4j-1.3alpha-8.jar in the build path. However, the
plug-ins project uses log4j-1.2.7.jar. The plug-ins project is also on
the build path of my main app. When I removed log4j-1.2.7.jar from the
plug-ins project the GMT pattern works correctly as advertised. Of
course that breaks my plug-ins project, so now I need to find a way to
tell Eclipse to ignore that old jar file.

Thanks so much for your help. Once you told me that it behaved in a
similar manner to log4j 1.2.14 it made me think to check my build paths.

Cheers, Eric


-- 
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