Ne0 wrote: > I am having trouble getting the service to output debug info using > Log.d(TAG, OUTPUT) so i can debug some issue's i'm having. Can anyone > tell me how i should go about getting a service to output some text to > the logcat file? or any other pointers on debugging it?
Services can log just fine, last I checked. However, debug-level logging might not be enabled by default. Check out the documentation for the isLoggable() method in Log: http://developer.android.com/reference/android/util/Log.html For temporary "what's going on in my service" logging, I tend to use Log.w() just to avoid such problems. I am sure this runs counter to convention, but since I don't leave these log statements in the code very long (and not in anything checked into a repository), I'm happy. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---