EventLog different from "Application"

Topics: Logging Application Block
Apr 24, 2009 at 9:34 PM
I need to Log some information in EventViewer, and it works. But now, I need to log into a EventLog different from "Application". The Log is named "SAV".

Log and Source already exists.

How can I do it?

I've changed the Log property of the Formatted EventLog TraceListener from "Application" to "SAV", but now the application is not logging.

Where can I find documentation for the TraceListener properties?

Thank you.
Apr 27, 2009 at 7:44 AM

Here you can find the Logging Application Block Properties including the trace listener properties: http://msdn.microsoft.com/en-us/library/dd203255.aspx . For your question, I think that you're just missing to set the Source property of the Formatted EventLog TraceListener. http://entlib.codeplex.com/Thread/View.aspx?ThreadId=45365 this is a related thread which may be useful for you.

Valiant Dudan
Global Technology and Solutions
Avanade, Inc.
Apr 27, 2009 at 7:17 PM
Thank you for the information.

The problem was in te name of the source. The source name was "Administración SAV" (in spanish), with the "ó" char. I've changed the name of the source and now it works fine.

Thanks again.