You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by Ceki Gülcü <ce...@qos.ch> on 2004/05/19 19:36:16 UTC

Re: [logging][PROPOSAL] a solution to incompatibility between log4j versions

At 07:08 PM 5/19/2004, Adam R. B. Jack wrote:
> > On the log4j we are making a very serious effort to keep everyone
> > happy.
>
>And that is greatly appreciated. :)
>
>I really wish you weren't having to go through this, I can hardly imagine
>how frustrating it must be to maintain an old interface for two years,
>attempting a clean deprecation, only run into such a gotcha. I do feel for
>you, and think users appreciate anything you can do to help.
>
> > Tell us specifically what fails and we will do our best to fix
> > it. Rolling back everything is not specific enough.
>
>Then can I say, whatever "changed in the public API"? ;-) Seriously though,
>I'd mentioned them previous in thread. That said, this thread has morphed,
>moved over 4 list, etc, so here again:
>
>Best I can tell from here:
>
>     http://lsd.student.utwente.nl/gump/project_todos.html
>
>These two are the Priority deprecation:
>
>http://lsd.student.utwente.nl/gump/jakarta-commons/commons-logging/index.html

On the c-l front the problem is clearly identified. A clear and safe
solution has been provided.

>http://lsd.student.utwente.nl/gump/jakarta-velocity/jakarta-velocity/index.html

 From what I could gather from [1] and [2]  velocity needs to change



logger.setPriority(Priority.DEBUG);

to

logger.setLevel(Level.DEBUG);

This will work in both 1.2.x and 1.3, both at compile and at runtime.

[1] http://marc.theaimsgroup.com/?l=velocity-dev&m=108442380518687&w=2


[2] [javac] 
/data3/gump/jakarta-velocity/bin/src/org/apache/velocity/runtime/log/Simple \
Log4JLogSystem.java:119: cannot resolve symbol  [javac] symbol  : method 
setPriority \
(org.apache.log4j.Priority)  [javac] location: class org.apache.log4j.Category
     [javac]         logger.setPriority(Priority.DEBUG);


>You already reverted this one, thanks (it was RootCategory, I think):


>http://lsd.student.utwente.nl/gump/avalon-excalibur/excalibur-logger/index.html
>
>Again, these are only the ones I can tell from within Apacge/Gump. External
>users who've not moved from Priority, are probably the same.
>
> > Moreover, we have provided very clear set of instructions that safely
> > address the c-l compilation problems. I think log4j is the wrong tree
> > to bark at.
> >
> > I noticed that
> > <http://gump.covalent.net/log/bootstrap-ant.html>bootstrap-ant no longer
> > builds. Is it a related problem?
>
>Hmm, good question. Seems possible, but odd that it works here:
>     http://lsd.student.utwente.nl/gump/ant/bootstrap-ant/index.html
>
>http://lsd.student.utwente.nl/gump/ant/bootstrap-ant/gump_work/buildscript_ant_bootstrap-ant.html
>
>(although here it assumes no log4j).
>
>The check does look for :
>
>     <available property="log4j.present"
>             classname="org.apache.log4j.Category"
>             classpathref="classpath"/>
>
>Did that change?
>
>I'll ask a Gumpmeister (who has access to that box) to take a closer look,
>and get back to you.
>
>regards,
>
>Adam
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
>For additional commands, e-mail: general-help@gump.apache.org

-- 
Ceki Gülcü

      For log4j documentation consider "The complete log4j manual"
      ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp  



---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org