From: Saso Tomat

> I have a question regarding the -o switch:

   The messages are the same, whether or not you use "-o" to send them
to a file.

> currently I see that log file contains timestamp ONLY. Is it possible
> to tell wget to include date too?

   Assuming that you're dealing with wget 1.10.2, and you're talking
about the messages like this:

--01:15:56--  http://www/test.html
           => `test.html'

then it's possible (and pretty easy), if you change the code
(src/http.c), to get something like this:

--2007-09-30 01:16:10--  http://www/test.html
           => `test.html'

ALP $ gdiff -u http.c;5 http.c;6
--- http.c;5    2005-10-13 12:36:21.000000000 -0500
+++ http.c;6    2007-09-30 01:10:45.000000000 -0500
@@ -2177,7 +2177,7 @@
       ++count;
       sleep_between_retrievals (count);
       /* Get the current time string.  */
-      tms = time_str (NULL);
+      tms = datetime_str (NULL);
       /* Print fetch message, if opt.verbose.  */
       if (opt.verbose)
        {

   There's a similar spot in src/ftp.c which should do the same thing
for an FTP transfer.

------------------------------------------------------------------------

   Steven M. Schweda               [EMAIL PROTECTED]
   382 South Warwick Street        (+1) 651-699-9818
   Saint Paul  MN  55105-2547

Reply via email to