--- Curtis Olson wrote:
> On Jan 27, 2008 3:51 AM, Frederic Bouvier wrote:
> 
> > Stuart Buchanan a écrit :
> > > Hi All,
> > >
> > > One of the frustrations of using Windows for development is the lack of
> > a
> > > sensible way to re-direct stderr to a file. This is particularly
> > annoying if you
> > > want to use a --log-level=debug.
> > >
> > > To fix this, I've changed the global_logstream to use stdout for windows
> > only.
> > >
> >
> > Is there a reason why we shouldn't do that for unix too ? is stdout used
> > for something else than logging ?
> >
> > > The patch below does this.
> > >
> > > If someone could test that this doesn't mess up *nix, and commit it,
> > that would
> > > be great.
> > >
> >
> > If we can avoid #ifdef, it's better isn't it ?
> 
> 
> I don't mind writing these messages to stdout versus stderr,
> 
> On unix you can just run  program > file 2>&1  in order to capture stderr as
> well as stdout.  Is that not possible in windows?  I bet a cygwin shell
> could do this.

No, it isn't possible in a normal command shell on windows, though it's easy in 
a
cygwin shell.

One reason for switching to stdout for windows is that it will help supporting
the windows community. It'll be much easier to ask them to put ">
c:\temp\fgfs.txt" at the end of their command line (or within fgrun - is that
possible?) than get them to install cygwin :)

I don't have any opinion as to whether we should have all output on all 
platforms
go to stdout. It would be consistent.

-Stuart


      ___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to