On Monday 29 March 2004 21:24, Berin Loritsch wrote:
The purpose of this was to allow Fortress to work with Jog4J or LogKit. There should be the ability to use a Log4J config file or a LogKit config
file. We had a demand to support more than one logger, and as much work as
could be done to support was done.
Ok.
What I didn't understand was that the class in question was ONLY used inside a catch() clause. To me that seems a bit odd (I never use Exception as 'normal-path'), indicating that Log4J manage to get setup elsewhere.
Have any takes on that?
Niclas
P.S. Sorry for not digging into Fortress all the way...
No need to be sorry.
The way it was set up was to try to use the LogKit config first. The thing is that Log4J config is bad XML if namespaces are enabled on the parser--causing the exception. If I recall correctly, we tried to examine the XML to determine the system we should be using.
Yes, I agree that it is a hack, but it is what we had to do by consequence, not design.
If there is a better way to determine the config file then by all means use it. I personally use LogKit most of the time, so I am not as familiar with the Log4J fallback mechanism. I just know why it was added, and I applied a patch that another developer submitted--and they confirmed it worked. To that end I was satisfied with it.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
