C# School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a C# Expert!

Join 307,165 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 1,562 people online right now. Registration is fast and FREE... Join Now!




To use log4net custom appender, config change only?

 

To use log4net custom appender, config change only?, Wrote WCF-based appender. Mgmt wants no VS proj change

tjwin

6 Jun, 2009 - 08:29 AM
Post #1

New D.I.C Head
*

Joined: 6 Jun, 2009
Posts: 4

I wrote a custom log4net appender that sends over WCF to a web-based WCF service - going to extend to allow REST'ful verbs also. We currently use log4net with file and console appenders. Anyway, at end of testing and now am told that they(dev mgmt) don't want devs to have to add reference to their Visual Studio projects to use my appender - just change the app.config file. I have a test app that, of course, has a reference to log4net as well as my WCF-based appender. The app writes to all three appenders. When I take out the reference in VS to my appender but still in app.config as the log4net docs state, my appender is not called.
Does anyone know if log4net should/can call/use my appender by just a config file entry?

User is offlineProfile CardPM
+Quote Post



Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 06:15PM

Live C# Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month