redirecting debug output to a file on Windows
Dirk Hohndel
dirk at hohndel.org
Thu Feb 2 11:35:13 PST 2017
On Thu, Feb 02, 2017 at 09:33:32PM +0200, Lubomir I. Ivanov wrote:
> On 2 February 2017 at 21:12, Lubomir I. Ivanov <neolit123 at gmail.com> wrote:
> > const char *location = logfile ? "subsurface.log" : "CON";
> >
> > console_desc.out = freopen(location, "w", stdout);
> > console_desc.err = freopen(location, "w", stderr);
>
> ^ this *probably* won't work for stderr, though.
That sucks as the debug output all goes to stderr :-(
/D
More information about the subsurface
mailing list