- Fixed a bug, with the default timestring of logfiles

- Added a logging function to ioAdditions object
master
Trivernis 8 years ago
parent 0cb95b5c75
commit 1e16d96d3f

@ -291,7 +291,7 @@ namespace GAIA
//creating or overwriting the logfile and writing the head //creating or overwriting the logfile and writing the head
using (StreamWriter sw = logfile.CreateText()) using (StreamWriter sw = logfile.CreateText())
{ {
sw.WriteLine("Started logging at " + DateTime.Now.ToString(@"YYYY/MM/DD_HH:mm:ss") + " with executable " + executable); sw.WriteLine("Started logging at " + DateTime.Now.ToString(@"yyyy/MM/dd_HH:mm:ss") + " with executable " + executable);
} }
} }
@ -429,9 +429,16 @@ namespace GAIA
public class IOAdditions public class IOAdditions
{ {
public LogFile logfile;
public IOAdditions() public IOAdditions()
{ {
logfile = new LogFile();
}
public IOAdditions(LogFile lf)
{
logfile = lf;
} }
public bool copyDirectory(string sourcepath, string targetpath) public bool copyDirectory(string sourcepath, string targetpath)
@ -457,7 +464,7 @@ namespace GAIA
} }
return true; return true;
} }
catch (Exception ex) { return false; } catch (Exception ex) { logfile.log(ex.ToString()); return false; }
} }
} }
} }

@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, // Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// indem Sie "*" wie unten gezeigt eingeben: // indem Sie "*" wie unten gezeigt eingeben:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyVersion("1.0.1.1")]
[assembly: AssemblyFileVersion("1.0.1.0")] [assembly: AssemblyFileVersion("1.0.1.1")]

Loading…
Cancel
Save