This commit is contained in:
2020-02-22 12:03:51 +01:00
parent 90544956bb
commit f03951c90e
4 changed files with 149 additions and 2 deletions

View File

@@ -15,10 +15,18 @@ namespace KatekTracability
public KatekTracability()
{
InitializeComponent();
eventLog1 = new System.Diagnostics.EventLog();
if (!System.Diagnostics.EventLog.SourceExists("KatekTracability"))
{
System.Diagnostics.EventLog.CreateEventSource("KatekTracability", "MyNewLog");
}
eventLog1.Source = "KatekTracability";
eventLog1.Log = "MyNewLog";
}
protected override void OnStart(string[] args)
{
eventLog1.WriteEntry("KatekTracabilityService started");
}
protected override void OnStop()