Last active
December 19, 2015 09:28
-
-
Save Gopinathp/5932684 to your computer and use it in GitHub Desktop.
Usage of GreenLogger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To print an exception in the console in debug builds only and to skip the printing in release builds. | |
// Instead of e.printStacktrace() use GreenLogger. | |
L.print(e); | |
// To print a sharedpreferences file in the console in debug builds only and to skip the printing in release builds. | |
L.print(mPrefs); | |
// To print any message only in debug, use | |
String message = "Your debug time only verbose message"; | |
L.v(message); | |
// or | |
L.d(message); | |
String anotherMessage = "something went seriously wrong. Must be printed on production build also"; | |
// To print a message both in debug and production environments, use as below | |
L.e(anotherMessage) | |
// or | |
L.w(anotherMessage); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment