N
Next
Hello,
This code writes to the Application log. Isn't it suppose to write to
"NewLog" log?
I'm not getting something here. Can someone help?
Thanks in advance,
Aaron
using System;
using System.Diagnostics;
namespace TestEventLog
{
class Class1
{
[STAThread]
static void Main(string[] args)
{
Class1 c1 = new Class1();
c1.writeLog();
}
private void writeLog ()
{
EventLog el = new EventLog();
el.Source = "NewSource";
el.Log = "NewLog";
el.WriteEntry("hello");
}
}
}
This code writes to the Application log. Isn't it suppose to write to
"NewLog" log?
I'm not getting something here. Can someone help?
Thanks in advance,
Aaron
using System;
using System.Diagnostics;
namespace TestEventLog
{
class Class1
{
[STAThread]
static void Main(string[] args)
{
Class1 c1 = new Class1();
c1.writeLog();
}
private void writeLog ()
{
EventLog el = new EventLog();
el.Source = "NewSource";
el.Log = "NewLog";
el.WriteEntry("hello");
}
}
}