with an abusable preprocessor i wouldn't need to :-)
but yes, i do need to go through and change all the Log.i() to if
(static flag) Log.i()
and i understand that Config.LOGV use is deprecated, or soon will be.
tx
>As I understand it if you do
>
>public static final boolean DEBUG = false;
>
>if(DEBUG){
> doStuff();
>}
>
>javac will strip the doStuff call since it's known to be unreachable
>at compile time.
>
>On Dec 10, 4:59 pm, Jason Proctor <[email protected]>
>wrote:
>> it would be nice to -
>>
>> #ifdef DEBUG
>> #define Log.i()
>> ...
>>
>> etc, but OTOH, preprocessors are very easily abusable.
>>
>>
>>
>> >On Android I'd say java or javac is basically a preprocessor for
>> >dalvik.
>>
>> >On Dec 10, 4:39 pm, Jason Proctor <[email protected]>
>> >wrote:
>> >> >On a similar note, what do yall use for your log tags? I go back and
>> >> >forth between static final Strings and this.getClass().getCanonicalName
>> >> >(). The CONSTANT strings annoy me, since I'm always adding and
>> >> >removing them to reduce my compiler warnings for unused variables, as
>> >> >I add and remove logging.
>>
>> >> i go back and forth between wishing Java had a preprocessor, and
>> >> being relieved that it doesn't....
>>
>> >> --
>> >> jason.vp.engineering.particle
>>
>> >--
>> >You received this message because you are subscribed to the Google
>> >Groups "Android Developers" group.
>> >To post to this group, send email to [email protected]
>> >To unsubscribe from this group, send email to
>> >[email protected]
>> >For more options, visit this group at
>> >http://groups.google.com/group/android-developers?hl=en
>>
>> --
>> jason.vp.engineering.particle
>
>--
>You received this message because you are subscribed to the Google
>Groups "Android Developers" group.
>To post to this group, send email to [email protected]
>To unsubscribe from this group, send email to
>[email protected]
>For more options, visit this group at
>http://groups.google.com/group/android-developers?hl=en
--
jason.vp.engineering.particle
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en