You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Niclas Hedhman <ni...@hedhman.org> on 2004/10/11 12:36:05 UTC

Re: Missing Priority.toPriority()

On Monday 11 October 2004 18:04, Ceki Gülcü 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 Log4J 
source.
And since it do exist in the javadoc, 
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 error 
against the latest Log4J sources.

-- 
   +------//-------------------+
  / http://www.bali.ac        /
 / http://niclas.hedhman.org / 
+------//-------------------+


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Re: Missing Priority.toPriority()

Posted by Ceki Gülcü <ce...@qos.ch>.
At 12:36 PM 10/11/2004, you wrote:
>On Monday 11 October 2004 18:04, Ceki Gülcü 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)

I thought my previous was factual, a little curt but factual. I did not 
mean to offend nor shoot the messenger.

>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 Log4J
>source.
>And since it do exist in the javadoc,
>public static Priority toPriority(String sArg,
>                                   Priority defaultPriority)
>I assume this is a deprecation removal going on. Is that correct?

Yes, indeed.

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

Also correct.

>Cheers
>Niclas
>
>P.S.  Eyebrowse guys, this is about
>org/tigris/eyebrowse/util/EyebrowseLogger.java:108 which has a compile error
>against the latest Log4J sources.
>
>--
>    +------//-------------------+
>   / http://www.bali.ac        /
>  / http://niclas.hedhman.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: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org