Update
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user