2

call it crazy, but I never use debugging, just logging when developing software for mobile phones... So when coming from Symbian to Android platform I was looking for something similar here. After searching for a while I figured out a way of using logs (I need live logs during the devlopment and file with logs, when testers are using the application), and I would like to ask the audience to comment and might be make an interesting suggestions:

I welcome any comments to my approach...

BR

STeN

1

2 Answers 2

1

As suggested in the comments you need not use grep , logcat supports filtering.

I have never used the log-collector but what I prefer is to write all logs to the SD card and also have an UncaughtExceptionHandler which logs to separate files . Only a few lines of code are required and it can entirely be controlled by a configuration parameter.

Edit : UEH sample : How do I obtain crash-data from my Android application?

Sign up to request clarification or add additional context in comments.

1 Comment

Hi, can you paste here an UncaughtExceptionHandler example? Thanks for answer.
0

One way could be, you can add java.util.logger in your code. Instead of Log.v, use java.util.logger functionality. This is a powerful logger, which can help you publish the log on to a log file on the sdcard and logcat, both at the same time. You can check this link:-

How to configure java.util.logging.logger in android to use a logging properties file placed on the sdcard?

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.