file - What is the best practice using Android Logger -


I am new to Android, I'm new to Android, please help me know about the best practice to use Android logger File should be placed in Android and should be logged in, or it is not necessary to write logs in the file. What could be the best practice.

This is my real intention: once we are live, our customers come back and tell us that if something has crashed or is not working in our Android, then how do we debug We do? In the web application, I will ask my server administrator to provide the log file. When there is no server error, what do we do with the Android application, but some phones failed. There is no way to get the logs from the phone.

Thanks Sun

Depending on the requirement of you, Debugging requires logging, with it you can easily use the build log functionality. You can view logs through logs.

  // Tag a tag string = "some activity"; // Log Log D. (Tag, "Hello World"); // debug log.e (tag, "hello world"); // Error   

If you want to access multiple devices while releasing your app, use a dedicated log framework (for example, Log4J) and upload it to a server .

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -