Does anyone have an MSMQ Appender for log4net?
I have a need for the following:
- An MsmqAppender that would send a LoggingEvent and all of it's Context properties to a private message queue.
- A windows service that can pick up the LoggingEvent and then continue logging the event as if it was logged directly from the application that made the original call to the logger (except with a different set of appenders).
Does that make sense?
I started looking at writing an MsmqAppender and a Windows Service but I don't think I have enough knowledge of the internals of log4net. For example, I can serialize the LoggingEvent using a BinaryMessageFormatter but then I also need the context properties and maybe even the Repository. In the Windows Service I'm not sure how I would put it all back together and then use a different configuration to pass the LoggingEvent, Context, etc. to a different set of appenders. I would need to carry over some information like the level of the root logger and maybe more.
Is it even possible to do what I would like to do?
Any help would be greatly appreciated!
--Mark
