Re: Missing Priority.toPriority()

Niclas Hedhman <[email protected]> Mon, 11 Oct 2004 18:36:05 +0800
Newsgroups gmane.comp.jakarta.log4j.devel,gmane.mail.eyebrowse.devel
Organization Private
Message-ID <[email protected]>
On Monday 11 October 2004 18:04, Ceki G=FClc=FC wrote:
> Hello Niclas,
>
> Just look at the docs:
>
>   http://logging.apache.org/log4j/docs/api/org/apache/log4j/Priority.html

Please don't beat up (kill?) the messenger ;o)

cannot resolve symbol
symbol  : method toPriority (java.lang.String,org.apache.log4j.Level)
location: class org.apache.log4j.Priority

It says the method doesn't exist, which Gump compiles against the HEAD Log4=
J=20
source.
And since it do exist in the javadoc,=20
public static Priority toPriority(String sArg,
                                  Priority defaultPriority)
I assume this is a deprecation removal going on. Is that correct?

And the fix looks like;
    log.setLevel( Level.toLevel( logLevel, Level.WARN ) );


Cheers
Niclas

P.S.  Eyebrowse guys, this is about
org/tigris/eyebrowse/util/EyebrowseLogger.java:108 which has a compile erro=
r=20
against the latest Log4J sources.

=2D-=20
   +------//-------------------+
  / http://www.bali.ac        /
 / http://niclas.hedhman.org /=20
+------//-------------------+