<?xml version="1.0" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugzilla.globus.org/bugzilla/bugzilla.dtd">

<bugzilla version="3.2.3"
          urlbase="http://bugzilla.globus.org/bugzilla/"
          maintainer="bacon@mcs.anl.gov"
>

    <bug>
          <bug_id>3736</bug_id>
          
          <creation_ts>2005-09-09 11:14</creation_ts>
          <short_desc>log4j timestamps are not ISO 8601 compatible</short_desc>
          <delta_ts>2006-10-26 16:19:02</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Java WS Core</product>
          <component>globus_wsrf_core</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          
          <priority>P3</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jens-S. Vöckler">voeckler@cs.uchicago.edu</reporter>
          <assigned_to name="Jarek Gawor">gawor@mcs.anl.gov</assigned_to>
          <cc>meder@mcs.anl.gov</cc>

      

      
          <long_desc isprivate="0">
            <who name="Jens-S. Vöckler">voeckler@cs.uchicago.edu</who>
            <bug_when>2005-09-09 11:14:28</bug_when>
            <thetext>Hi, 

the log4j produces timestamps like

  2005-09-08 22:35:56,101 INFO  exec.StateMachine ...

which are neither ISO 8601 compliant nor unambigous. There are three issues with
the time stamp above:

[1] It is ambigious. If I were to parse a logfile that was produced elsewhere in
the world, without time zone identification, it is hopeless. ISO 8601 says to
use either a zone offset for local time, or Z for UTC, if the stamps are to be
unambigous.

[2] The date and time of a timestamp are separated by a &quot;T&quot; according to ISO
8601. The wording can also to be read - in certain cases - that &quot;T&quot; can be
omitted. However, a space as separator between date and time is not permitted AFAIK.

[3] The separator between seconds and subseconds has to be &quot;.&quot; (period). This is
supposedly fixed in newer releases of log4j.

Valid formats for ISO 8601 time stamps include the XML schema type xs::dateTime.
Examples can be seen using GNU&apos;s &quot;date -Isec&quot;. More examples include:

20020523T140427-0500
20020523190427Z
2002-05-23T14:04:27-05:00
2002-05-23T19:04:27Z
20020523T140427.166-0500
20020523190427.166Z
2002-05-23T14:04:27.166-05:00
2002-05-23T19:04:27.166Z

I would pick example 7/8.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Jarek Gawor">gawor@mcs.anl.gov</who>
            <bug_when>2005-09-12 10:45:35</bug_when>
            <thetext>How about this format: &apos;2002-05-23 14:04:27.166-05:00&apos;?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Jens-S. Vöckler">voeckler@cs.uchicago.edu</who>
            <bug_when>2005-09-12 11:03:20</bug_when>
            <thetext>AFAI understand it, and I may read it wrong, you can s/T//, but not
s/T/ /. Thus, replacing &quot;T&quot; with space &quot; &quot; would not be permissable. See [2] in
original request. 

However, one may get away on a technicality (have to re-read the draft I have
here somewhere) by claiming that the Jarek&apos;s version is two timestamps, one date
and one time.

Note: Dropping the T is often applied to the concise (no &quot;-&quot; in date, no &quot;:&quot; in
time) format. I agree that s/T/ / is more readible. We can check with XML schema
what inputs xs::dateTime will accept. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Jarek Gawor">gawor@mcs.anl.gov</who>
            <bug_when>2006-10-26 15:52:59</bug_when>
            <thetext>Given the discussion on gt-dev (initial thread: http://www.globus.org/mail_archive/gt-dev/2006/10/msg00044.html) we decided on the following format:

YYYY-MM-DDThh:mm:ss,sss[+-]hh:mm

Example:

2002-05-23T14:04:27,166-05:00

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Jarek Gawor">gawor@mcs.anl.gov</who>
            <bug_when>2006-10-26 16:19:02</bug_when>
            <thetext>Updated the log4j configuration file to print out the timestamp in the agreed format. Changes commited to trunk.</thetext>
          </long_desc>
      
      

    </bug>

</bugzilla>