diff --git a/Gaia/Files.cs b/Gaia/Files.cs index bc86ce5..725a74b 100644 --- a/Gaia/Files.cs +++ b/Gaia/Files.cs @@ -291,7 +291,7 @@ namespace GAIA //creating or overwriting the logfile and writing the head 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 LogFile logfile; + public IOAdditions() { + logfile = new LogFile(); + } + public IOAdditions(LogFile lf) + { + logfile = lf; } public bool copyDirectory(string sourcepath, string targetpath) @@ -457,7 +464,7 @@ namespace GAIA } return true; } - catch (Exception ex) { return false; } + catch (Exception ex) { logfile.log(ex.ToString()); return false; } } } } diff --git a/Gaia/Properties/AssemblyInfo.cs b/Gaia/Properties/AssemblyInfo.cs index 713b600..7ede09b 100644 --- a/Gaia/Properties/AssemblyInfo.cs +++ b/Gaia/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, // indem Sie "*" wie unten gezeigt eingeben: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.1.0")] +[assembly: AssemblyVersion("1.0.1.1")] +[assembly: AssemblyFileVersion("1.0.1.1")]