Dynamically add Souce and Category to EventLog

2005-10-11 Thread Mohit Mehra
Hello There, I am using the most recent version of Log4Net. I need to be able to add source and category information on a per message basis. I am able to successfully add this in the SQL server as I can utilize MDC properties. Example: MDC.Set(category, category); Can I do something similar to

Re: Dynamically add Souce and Category to EventLog

2005-10-11 Thread Mohit Mehra
Ron,Thanks for your prompt replay. Although I have seen a lot of posts regarding EventId, I still don't see anything related to setting the Source dynamically. Can you please post me some code or redirect to a URL? Regards, Mohit On 10/11/05, Ron Grabowski [EMAIL PROTECTED] wrote: This is

Re: Dynamically add Souce and Category to EventLog

2005-10-11 Thread Mohit Mehra
The idea is to use the same Logger for multiple applications (Windows Services, Web Services etc). For example System event log has sources like DCOM, SCM, IIS etc. I would giveextending EventLogAppendera try though. Thanks. On 10/11/05, Ron Grabowski [EMAIL PROTECTED] wrote: There's this:///