Title: RE: config-free log4net?

I wanted to do this as well because its possible we may use a different logging framework in the future or specific customers may have their own logging framework (its happened already).

I found that there is no real good way to configure log4net at runtime. There is not a full API set for doing this and what methods appear to provide some of the functionality dont seem to work (theyre used internally by log4net and dont seem to be intended to be used externally).

What I ended up having to do is provide a wrapper around managing log4net.config file that allows users to change logging at runtime.

Its hacky, but thats the only way to do it as far as I can tell.

-Chad

_____________________________________________
From: Matthew Griffore [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 10, 2004 8:09 AM
To: 'Log4NET User'
Subject: config-free log4net?

Is there a way to “componentize” log4net? What I mean is there a way to package a standard/fixed set of appenders inside of a component so the developers need not add anything to their config files and simply make calls to my static wrapper methods. I am trying to abstract  and blackbox log4net for developer’s applications.

I have heard similar questions beiing asked but have not seen any clear-cut answers. Thanks.

Matthew Griffore | Application Integration | Union Gas

Union Gas ~ 800.571.8446:2682 ~ [EMAIL PROTECTED]

Reply via email to