On Oct 16, 12:51 am, jotobjects <jotobje...@gmail.com> wrote:
> This is still a little unclear to me.  AFAIK this is a recommendation
> to strip out debug logging - logging is not automatically stripped?

Read a message before you reply. Yusuf just said that debug logging is
stripped at compile time.

> Is there a mechanism for setting the log level as with Log4J and
> java.util.logging and commons logging?  

You can use java.util.logging. It's in the Android API.

Christine

I haven't been able to get the
> Log.isLoggable() method to do anything useful.  It returns true for
> INFO and false for DEBUG even when I use adb shell setprop as
> instructed.
>
> On Oct 15, 2:49 pm, "Yusuf Saib (T-Mobile USA)" <yusuf.s...@t-
>
> Mobile.com> wrote:
> > Fromhttp://developer.android.com/reference/android/util/Log.html#d(java.l...
>
> > "Verbose should never be compiled into an application except during
> > development. Debug logs are compiled in but stripped at runtime.
> > Error, warning and info logs are always kept."
>
> > Yusuf Saib
> > Android
> > ·T· · ·Mobile· stick together
> > The views, opinions and statements in this email are those of the
> > author solely in their individual capacity, and do not necessarily
> > represent those of T-Mobile USA, Inc.
>
> > On Oct 15, 1:01 pm, vj <vjvdixit.l...@gmail.com> wrote:
>
> > > I understand it is meant for filtering out "logcat" messages, but on
> > > what
> > > basis would a developer know when to use which type of API ?
>
> > > On Oct 15, 2:50 pm, vj <vjvdixit.l...@gmail.com> wrote:
>
> > > > What is the significance of having different "priority" levels in the
> > > > Log API ? I am referring to .e(), .d() etc. Also, considering the fact
> > > > that all the priorities are going to be logged in any case, on what
> > > > basis would a developer know when to use which type of API ?
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to