On Fri, 31 Oct 2003, Jim Moore wrote:

| It's been a popular request from the user community for as long as I've been
| using Log4j, which was about the time it came to Jakarta.
|
| Prior to v1.2 it was a major pain to add the capability to do tracing
| because you would have to rewrite the Logger class, which meant you either
| forked the code-base, wrote wrappers, or did a lot of custom configurations
| to make your new Logger to be used instead of the standard one.  Not fun.
| See http://marc.theaimsgroup.com/?l=log4j-dev&m=101362470813799&w=2
|
| However, with v1.2 it's now trivial to add the capability.  Drop in the code
| I put in the FAQ at
| http://nagoya.apache.org/wiki/apachewiki.cgi?Log4JProjectPages/TraceLevel
| and when you want to log you simply do
|
| LOG.log(TraceLevel.TRACE, "My message");

And the if, please. I don't want a load of mega overhead for logging. Then
the statement suddenly becomes a little more annoying.

|
| That said, a trace level is and always has been so popular that it would
| seem prudent to provide it if for no other reason than to make it easier for
| people to use.  Adding it is trivial, and -- as you said -- would finally
| put to rest the enormous amount of effort that's spent every few months by
| people fighting to put it in and those arguing for why it's been left out...

Every few months this come up. Every time it has to be "put to rest". I've
also used log4j since right before it moved to jakarta. I've seen this
issue so many times. The examples of how to make "new levels", what do
they use? Trace.
  It is ridiculous fighting it. And it somewhat pisses me off that THERE
ACTUALLY IS (at least seems like) a rather overwhelming desire FOR it, as
opposed to AGAINST it, which is totally neglected.

"Challenge": If Ceki is so sure about his haevy-handed decision, why DON'T
he put the question up for a vote? A user-base vote?

Ceki, you're a great guy, judging from your efforts with log4j and Apache
in general, but this fighting against -your own user base- is annoying.

  .. and what is NOT putting up the trace issue for vote gonna do?

Endre.

PS: If it is interesting, I could make some suggestions, in the javadoc,
for when to use the different levels - I feel that it lacks such guidance
for firsttime users. As we at our organization have used it for such a
long time, I think I've gotten a pretty clear idea of which things should
go where - and I actually firmly believe that this would be pretty
objective.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to