--- Magesh Umasankar <[EMAIL PROTECTED]> wrote: >
From: "Conor MacNeill"
> <[EMAIL PROTECTED]>
> 
> Please find attached a patch that introduces
> -deprecation to the command line. 
> Project.MSG_DEPRECATED
> is introduced between INFO & VERBOSE.
> 

I do not think DEPRECATION should be in the same scale
as regular messages. To me -deprecation should present
the deprecated messages independently of the levels of
logging. 

> As I have modified the value of some public static
> finals,
> viz. Project.DEBUG and Project.VERBOSE, mandatory
> recompiling of all of Ant's source code is needed.
> If you can suggest a cleaner way to do this and
> avoid
> this penalty, I am all ears.
> 

Do not associate deprecation with log levels,
in other words, the inclusion of exclusion of
deprecation is separate. You could acheive this with
something like:

   void log(String msg, int level) {
     if (level == MSG_DEPRECATED) {
        if (!deprecationIsOn()) return;
        level = MSG_ERROR;
     }
     // original log code
   }

This means you can use for MSG_DEPRECATED some value
outside the regular flags, like '-1'.

Jose Alberto


__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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

Reply via email to