I agree with TreKing:  it's very bad practice to leave your verbose
logging in after development.  It it still perhaps necessary to leave
some logs in, but most of the chatty ones should be stripped from your
app, as they'll be really annoying to other people, and just get in
the way (and it's just unprofessional).  Point #1 can be solved if you
write a utility class in your app like Logger, that does the same
thing as Log, but you can then throw out the appropriate methods in
production.  Point #2 has been solved (at least in theory) by
information flow analysis, but I don't think there's a large scale
production version of this.  Point 3 can (if you find it annoying) be
solved by doing a "logcat | grep com.myapp" or something similar,
though maybe that won't quite work for everything you need.

kris

On Fri, Jan 20, 2012 at 9:07 AM, TreKing <[email protected]> wrote:
> On Tue, Jan 17, 2012 at 12:31 PM, Leno Britto <[email protected]> wrote:
>>
>> but why would you do that? the user won't see those unless he plugs the
>> phone to the pc and if he does, so what? those messages are meant for
>> troubleshooting rather then testing things out, isn't that how you're you
>> using them? because if you are, what's the problem with leaving them there?
>
>
> 1 - Excessive logging slows your app down.
> 2 - Many apps have been known to leave inappropriate contents in their logs
> (keys, passwords, etc).
> 3 - For developers, it's quite annoying to debug one's own app while the
> LogCat is flooded with crap from other apps that shouldn't be there in
> release.
>
>
> -------------------------------------------------------------------------------------------------
> TreKing - Chicago transit tracking app for Android-powered devices
>
> --
> 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

-- 
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

Reply via email to