[no subject]

         created new method to redirect standard output and standard error from
        chronojump.cs (without the needing of .sh or .bat params).
        Allows to have on linux and windows a single file with the output and
        error. Also on Vista
        fixes: 539345 fix found crash file on last execution
        File is closed if all works ok

code is:

        public static void Main(string [] args)
                bool timeLogPassedOk = Log.Start(args);
                Log.WriteLine(string.Format("Time log passed: {0}",
                string errorFile = Log.GetFile();

                StreamWriter sw = new StreamWriter(new BufferedStream(new
FileStream(errorFile, FileMode.Create)));
                sw.AutoFlush = true;

and after exiting:


this is for 0.7.5

See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=539345.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]