curl-users
Re: curl.exe: append logs on the output-file?
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 28 Mar 2002 11:23:59 +0100 (MET)
Date: Thu, 28 Mar 2002 11:23:59 +0100 (MET)
On Thu, 28 Mar 2002, Christoph Brunner wrote:
> i use the curl.exe file to upload files via https to my server! Now i want
> to log the errors and messages from curl. I use the --stderr and the
> --output options to log the information to files. That works pretty good!
> But for each call of the curl.exe the program create a new file and the
> older information is overwrited.
>
> It is possible to append the new logs?
No, it isn't possible as-is.
Thinking about it, I figure --stderr should actually always append. Anyone
with a different opinion? Please don't tell me we need both. ;-)
src/main.c line 1096 should be modified so that the fopen() uses an "a"
instead of "w" for this to work...
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/Received on 2002-03-28