What's the likelihood of moving off of java.util.logging, and just using
Slf4j directly? Supposedly translating from JUL to SLF4J (so i can use
log4j) is very expensive.
Just asking. :) :)
I mention this, since I bet the main argument for both of these requests
are that you were trying to reduce the number of "dependencies". But, I
think you'll have to reconsider this at some point in the future. :)
Right. But if most people use log4j or slf4j. Then why are we forcing them to use jul?
On 02.02.11 20:55, revetkn wrote:
> Hi Fernando -
>
> This is my reasoning.
>
> If I were to choose slf4j, then everyone using log4j must add slf4j to
> their projects.
> If I were to choose log4j, then everyone using slf4j must add the
> log4j adapter (or whatever it's called) to their projects.
> If I were to choose commons-logging, then everyone not using that must
> add it to their projects. Plus I don't like commons-logging, although
> from what I hear the classloader problems etc. have been fixed since I
> last used it.
>
> By using j.u.l I avoid this. I originally started on 1.6 by having 3
> different distros, one that supported log4j, one that was j.u.l, and
> one that was commons-logging. I (rightfully IMO) got negative
> feedback and I decided to go with j.u.l, and if anyone wants to tie
> into their own logging framework, it's simple enough to do with the
> slf4j bridge.
>
> If there were a clear cut "98% of apps use logging framework X"
> metric, I would write RestFB to target logging framework X. But it's
> not that simple, at least not so far as I know. The state of logging
> in Java is a bit ridiculous, unfortunately, and it's not going to
> change anytime soon, if ever.
I don't agree with you but I respect your stance.
Since this subject comes up so often I think it deserves its own chapter
on http://restfb.com/. For all future requests to support logging
framework X you could simply post a link...
Should you ever change your mind I'd use slf4j - unless something better
is developed in the meantime ;-)
Cheers,
Marcel
--
Marcel St�r, http://www.frightanic.com
Couchsurfing: http://www.couchsurfing.com/people/marcelstoer
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Umh, what tells you slf4j is not popular? Do you have "facts & figures"
that support your statement? I'd be interested in that because I'm never
quite certain about the user base of the various logging frameworks
myself...
As I said before, I don't agree with not introducing dependencies but I
totally understand your reasons. Earlier in my career I supported the
same ideas you brought forth wholeheartedly.
I hope for one thing though. If you ever change your mind then don't
just add a logging framework X dependency. Either introduce dependencies
and replace all the duplicated hand-woven code (logging X, Apache
commons lang, etc) or stick with your ideals.
Cheers,
Marcel
>> Marcel St�r,http://www.frightanic.com
>> Couchsurfing:http://www.couchsurfing.com/people/marcelstoer
>> O< ascii ribbon campaign - stop html mail -www.asciiribbon.org
--
Marcel St�r, http://www.frightanic.com
though, it sorta sounds cyclical. I don't want to add dependencies, yet
you want slf4j to be more popular. You want people to step beyond their
fear of a new logging framework, yet you won't push them out of the nest
our of fear of a few new dependencies.
anyhow.. it's not a blocker right now. :) I mean you just moved into
the maven central a few weeks ago.. we can wait a bit longer for a good
logging framework. :) :)
thank you for everything though! :)
free beers available when in SF :)
On 2/6/11 6:33 AM, revetkn wrote:
> Hi Marcel -
>
> If it's any consolation, if I do reintroduce a logging framework, I
> will likely go with slf4j. From a technical perspective, it's the
> best Java logger available, I just wish it were more popular!
>
> Thanks
> Mark
>
>> Marcel St�r,http://www.frightanic.com