Simple Windows console app:
using System.Diagnostics;
namespace TestConsole
{
class Program
{
static void Main(string[] args)
{
EventLog.WriteEntry("Application", "HELLO!", EventLogEntryType.Error, 22);
}
}
}
When I run this (as a local admin) on Server 2012, it works - except the message is not displayed when I view this event in Server Manager. Why is the message ("HELLO!") not showing up?
EDIT: Screenshot of Server Manager: