You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by dg...@hyperreal.org on 1999/05/17 01:39:45 UTC
cvs commit: apache-1.3/src/modules/standard mod_log_config.c
dgaudet 99/05/16 16:39:45
Modified: htdocs/manual/mod mod_log_config.html
src CHANGES
src/modules/standard mod_log_config.c
Log:
Always log months in english format for %t in mod_log_config.
PR: 4366, 679
Submitted by: Petr Lampa <la...@fee.vutbr.cz>
Revision Changes Path
1.33 +2 -2 apache-1.3/htdocs/manual/mod/mod_log_config.html
Index: mod_log_config.html
===================================================================
RCS file: /home/cvs/apache-1.3/htdocs/manual/mod/mod_log_config.html,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- mod_log_config.html 1999/03/04 19:28:37 1.32
+++ mod_log_config.html 1999/05/16 23:39:42 1.33
@@ -136,9 +136,9 @@
%...r: First line of request
%...s: Status. For requests that got internally redirected, this
is status of the *original* request --- %...>s for the last.
-%...t: Time, in common log format time format
+%...t: Time, in common log format time format (standard english format)
%...{format}t: The time, in the form given by format, which should
- be in strftime(3) format.
+ be in strftime(3) format. (potentially localised)
%...T: The time taken to serve the request, in seconds.
%...u: Remote user (from auth; may be bogus if return status (%s) is 401)
%...U: The URL path requested.
1.1355 +3 -0 apache-1.3/src/CHANGES
Index: CHANGES
===================================================================
RCS file: /home/cvs/apache-1.3/src/CHANGES,v
retrieving revision 1.1354
retrieving revision 1.1355
diff -u -r1.1354 -r1.1355
--- CHANGES 1999/05/13 18:25:50 1.1354
+++ CHANGES 1999/05/16 23:39:43 1.1355
@@ -1,5 +1,8 @@
Changes with Apache 1.3.7
+ *) Always log months in english format for %t in mod_log_config.
+ [Petr Lampa <la...@fee.vutbr.cz>] PR#4366, 679
+
*) Support for server-parsed and multiview-determined ReadmeName and
HeaderName files in mod_autoindex. Removed the restriction on
"/"s in ReadmeName and HeaderName directives since the *sub_req*
1.77 +4 -6 apache-1.3/src/modules/standard/mod_log_config.c
Index: mod_log_config.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/modules/standard/mod_log_config.c,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -r1.76 -r1.77
--- mod_log_config.c 1999/03/04 19:28:40 1.76
+++ mod_log_config.c 1999/05/16 23:39:44 1.77
@@ -384,16 +384,14 @@
}
else { /* CLF format */
char sign = (timz < 0 ? '-' : '+');
- size_t l;
if (timz < 0) {
timz = -timz;
}
-
- strftime(tstr, MAX_STRING_LEN, "[%d/%b/%Y:%H:%M:%S ", t);
- l = strlen(tstr);
- ap_snprintf(tstr + l, sizeof(tstr) - l,
- "%c%.2d%.2d]", sign, timz / 60, timz % 60);
+ ap_snprintf(tstr, sizeof(tstr), "[%02d/%s/%d:%02d:%02d:%02d %c%.2d%.2d]",
+ t->tm_mday, ap_month_snames[t->tm_mon], t->tm_year+1900,
+ t->tm_hour, t->tm_min, t->tm_sec,
+ sign, timz / 60, timz % 60);
}
return ap_pstrdup(r->pool, tstr);