Now and then you must feel the need to have some more control over the way Android Application logs are getting displayed. Possible requirement scenarios; redirecting your Android logs into a File or you might want to control the logs those are getting displayed e.g. for production mode, you may want to block all logs to get better performance . I have written a custom Logger, which is a wrapper over android.util.Log . This will keep existing behavior of Log class as it is and add few handy features to get more control over your application logs- Storing Logs directly into File - at present all logs comes on the LogCat. You need to manually copy/past logs from LogCat to any file for further analysis. Another option is to get the Dump state when an application gets “ Forced Closed ”. But this wrapper will allow you an automatic solution. Imagine a scenario, your Phone is not connected with the LogCat and you need the tracing. This wrapper will be
PRASpace - Blogging about Technology, Life, Travel and more.