How to config EventLogAppender for write only events from my app. Because, currently I have next configuration:
var elAppender = new EventLogAppender
{
ApplicationName = "My App",
LogName = "My Log",
Layout = new PatternLayout(default_format),
Threshold = Level.Error
};
elAppender.ActivateOptions();
and in My Log present all messages from the all applications like Application, bu I need events only from My App.
Thank you.
I found solution :),
I recreated my appender without spaces in the name and everything worked 🙂 the code like this: