You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2009/03/11 04:54:30 UTC

DO NOT REPLY [Bug 46833] New: Log Format %{%t}t

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

           Summary: Log Format %{%t}t
           Product: Apache httpd-2
           Version: 2.2.11
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_log_config
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: Al_Stu@Verizon.net


Access Log Format %{%t}t does not work on Windows platform (Apache 2.2.11).  
Does work on Linux platform (Apache/2.2.9).

Work around:
Use multiple %{}t formats seperated by tab (\t).

This: %{%Y-%m-%d}t\t%{%H:%M:%S}t\t%{%Z}t
Should be: %{%Y-%m-%d%t%H:%M:%S%t%Z}t

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


DO NOT REPLY [Bug 46833] Log Format %{%t}t

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46833


Dan Poirier <po...@pobox.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|poirier@pobox.com           |




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


DO NOT REPLY [Bug 46833] Log Format %{%t}t

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46833


Dan Poirier <po...@pobox.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |poirier@pobox.com
         Resolution|                            |WORKSFORME




--- Comment #1 from Dan Poirier <po...@pobox.com>  2009-03-20 10:02:55 PST ---
The web server just calls strftime() to format the time.  On Linux strftime()
supports %t in the format string, but the strftime() on windows does not.  

Your workaround looks fine if you want your httpd config to be portable.

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