Basically Log are 5 kinds of Log those are describe in details:-
Log.v(); // Verbose
Log.d(); // Debug
Log.i(); // Info
Log.w(); // Warning
Log.e(); // Error
Where
Log.v(String,String);
Log.d(String,String);
Log.i(String,String);
Log.w(String,String);
Log.e(String,String);
Where
Log.v(String,String);
Log.d(String,String);
Log.i(String,String);
Log.w(String,String);
Log.e(String,String);
Log.e: This is for when bad stuff happens. Use this tag in places like inside a catch statement. You know and error has
occurred and therefore you're logging an error.
Log.w: Use this when you suspect something shady is going on. You may not be completely
in full on error mode, but maybe you recovered from some unexpected behavior. Basically,
use this to log stuff you didn't expect to happen but isn't necessarily an error. Kind
of like a "hey, this happened, and it's weird, we should look into it."
Log.i: Use this to post useful information to the log. For example: that you have
successfully connected to a server. Basically use it to report successes.
Log.d: Use this for debugging purposes. If you want to print out a bunch of messages
so you can log the exact flow of your program, use this. If you want to keep a log of variable values, use this.
Log.v: Use this when you want to go absolutely nuts with your logging. If for some
reason you've decided to log every little thing in a particular part of your app, use the Log.v tag.
Thank's It may help you more.....
No comments:
Post a Comment