diff --git a/.vs/LogWriter.git/v16/.suo b/.vs/LogWriter.git/v16/.suo
index bb1ad9b..e5f904a 100644
Binary files a/.vs/LogWriter.git/v16/.suo and b/.vs/LogWriter.git/v16/.suo differ
diff --git a/LogWriter/LogWriter.cs b/LogWriter/LogWriter.cs
index 2886a41..afcf0c7 100644
--- a/LogWriter/LogWriter.cs
+++ b/LogWriter/LogWriter.cs
@@ -163,7 +163,7 @@ namespace Eugen.ESystem.IO
///
/// Stores the message format
///
- private string messageFormat = "{0:T}: {1}";
+ private string messageFormat = "{0:T}.{1}: {2}";
#endregion
#region events
@@ -304,6 +304,7 @@ namespace Eugen.ESystem.IO
// holds the actual date and time
DateTime time = DateTime.Now;
+ int ms = time.Millisecond;
// creates the file name
string fileName;
@@ -362,14 +363,13 @@ namespace Eugen.ESystem.IO
}
}
}
-
// build message line
string line;
try
{
// creates the line
- line = String.Format(this.messageFormat, new object[] { time, message });
+ line = String.Format(this.messageFormat, new object[] { time, ms, message });
}
catch (FormatException)
{
@@ -419,7 +419,7 @@ namespace Eugen.ESystem.IO
// close file
writer.Close();
- OnMessageWritten(new LogWriterEventArgs(time, message));
+ OnMessageWritten(new LogWriterEventArgs(time, ms, message));
return true;
}
@@ -488,6 +488,8 @@ namespace Eugen.ESystem.IO
///
private DateTime time;
+ private int millisecond;
+
///
/// Stores the message
///
@@ -526,10 +528,11 @@ namespace Eugen.ESystem.IO
///
/// Specifyes the message post time
/// Specifyes the message
- public LogWriterEventArgs(DateTime time, string message)
+ public LogWriterEventArgs(DateTime time, int millisecond, string message)
: base()
{
this.time = time;
+ this.millisecond = millisecond;
this.message = message;
}
#endregion
diff --git a/LogWriter/bin/Debug/helogwri.dll b/LogWriter/bin/Debug/helogwri.dll
index 9dd8069..759f4ca 100644
Binary files a/LogWriter/bin/Debug/helogwri.dll and b/LogWriter/bin/Debug/helogwri.dll differ
diff --git a/LogWriter/bin/Debug/helogwri.pdb b/LogWriter/bin/Debug/helogwri.pdb
index 1454d86..358fab4 100644
Binary files a/LogWriter/bin/Debug/helogwri.pdb and b/LogWriter/bin/Debug/helogwri.pdb differ
diff --git a/LogWriter/obj/Debug/helogwri.dll b/LogWriter/obj/Debug/helogwri.dll
index 9dd8069..759f4ca 100644
Binary files a/LogWriter/obj/Debug/helogwri.dll and b/LogWriter/obj/Debug/helogwri.dll differ
diff --git a/LogWriter/obj/Debug/helogwri.pdb b/LogWriter/obj/Debug/helogwri.pdb
index 1454d86..358fab4 100644
Binary files a/LogWriter/obj/Debug/helogwri.pdb and b/LogWriter/obj/Debug/helogwri.pdb differ
diff --git a/Test_LogWriter/Form1.cs b/Test_LogWriter/Form1.cs
index e07afa1..79ba5aa 100644
--- a/Test_LogWriter/Form1.cs
+++ b/Test_LogWriter/Form1.cs
@@ -134,7 +134,7 @@ namespace Test_LogWriter
var logWriter1 = new LogWriter(@"C:\TMP\");
logWriter1.WriteMessage("Das ist ein Test");
- //Variante 2 - Logdateiname wird angegeben, z.B. 'my_logfile.log'
+ //Variante 2 - Logdateiname wird angegeben, z.B. 'my_logfile2.log'
var logWriter2 = new LogWriter(@"C:\TMP\", "my_logfile2.log");
logWriter2.WriteMessage("Das ist Test 2");
diff --git a/Test_LogWriter/bin/Debug/Test_LogWriter.exe b/Test_LogWriter/bin/Debug/Test_LogWriter.exe
index 19f9654..7b35961 100644
Binary files a/Test_LogWriter/bin/Debug/Test_LogWriter.exe and b/Test_LogWriter/bin/Debug/Test_LogWriter.exe differ
diff --git a/Test_LogWriter/bin/Debug/Test_LogWriter.pdb b/Test_LogWriter/bin/Debug/Test_LogWriter.pdb
index 0ed75d2..b6db859 100644
Binary files a/Test_LogWriter/bin/Debug/Test_LogWriter.pdb and b/Test_LogWriter/bin/Debug/Test_LogWriter.pdb differ
diff --git a/Test_LogWriter/bin/Debug/helogwri.dll b/Test_LogWriter/bin/Debug/helogwri.dll
index 9dd8069..759f4ca 100644
Binary files a/Test_LogWriter/bin/Debug/helogwri.dll and b/Test_LogWriter/bin/Debug/helogwri.dll differ
diff --git a/Test_LogWriter/bin/Debug/helogwri.pdb b/Test_LogWriter/bin/Debug/helogwri.pdb
index 1454d86..358fab4 100644
Binary files a/Test_LogWriter/bin/Debug/helogwri.pdb and b/Test_LogWriter/bin/Debug/helogwri.pdb differ
diff --git a/Test_LogWriter/obj/Debug/Test_LogWriter.csproj.AssemblyReference.cache b/Test_LogWriter/obj/Debug/Test_LogWriter.csproj.AssemblyReference.cache
index 0bff807..09089f1 100644
Binary files a/Test_LogWriter/obj/Debug/Test_LogWriter.csproj.AssemblyReference.cache and b/Test_LogWriter/obj/Debug/Test_LogWriter.csproj.AssemblyReference.cache differ
diff --git a/Test_LogWriter/obj/Debug/Test_LogWriter.csproj.FileListAbsolute.txt b/Test_LogWriter/obj/Debug/Test_LogWriter.csproj.FileListAbsolute.txt
index c5d114d..772fd94 100644
--- a/Test_LogWriter/obj/Debug/Test_LogWriter.csproj.FileListAbsolute.txt
+++ b/Test_LogWriter/obj/Debug/Test_LogWriter.csproj.FileListAbsolute.txt
@@ -6,8 +6,8 @@ H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LogWriter.git\Test_LogWrit
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LogWriter.git\Test_LogWriter\bin\Debug\Test_LogWriter.exe.config
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LogWriter.git\Test_LogWriter\bin\Debug\Test_LogWriter.exe
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LogWriter.git\Test_LogWriter\bin\Debug\Test_LogWriter.pdb
-H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LogWriter.git\Test_LogWriter\bin\Debug\helogwri.dll
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LogWriter.git\Test_LogWriter\bin\Debug\helogwri.pdb
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LogWriter.git\Test_LogWriter\obj\Debug\Test_LogWriter.csproj.CopyComplete
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LogWriter.git\Test_LogWriter\obj\Debug\Test_LogWriter.exe
H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LogWriter.git\Test_LogWriter\obj\Debug\Test_LogWriter.pdb
+H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\LogWriter.git\Test_LogWriter\bin\Debug\helogwri.dll
diff --git a/Test_LogWriter/obj/Debug/Test_LogWriter.exe b/Test_LogWriter/obj/Debug/Test_LogWriter.exe
index 19f9654..7b35961 100644
Binary files a/Test_LogWriter/obj/Debug/Test_LogWriter.exe and b/Test_LogWriter/obj/Debug/Test_LogWriter.exe differ
diff --git a/Test_LogWriter/obj/Debug/Test_LogWriter.pdb b/Test_LogWriter/obj/Debug/Test_LogWriter.pdb
index 0ed75d2..b6db859 100644
Binary files a/Test_LogWriter/obj/Debug/Test_LogWriter.pdb and b/Test_LogWriter/obj/Debug/Test_LogWriter.pdb differ